CVE-2026-9697
undici: undici: Man-in-the-Middle attack via ignored TLS options with SOCKS5 proxy
Overview
Description
Impact:
undici's ProxyAgent silently drops the requestTls option when configured with a SOCKS5 proxy URI (socks5:// or socks://). The target HTTPS connection through the SOCKS5 tunnel falls back to Node's default trust store, ignoring user-configured ca, cert, key, rejectUnauthorized, and servername settings.
Applications that pin to an internal or corporate CA via requestTls.ca will, when their proxy URI is SOCKS5, get the default Mozilla CA bundle as the trust anchor instead. Any cert signed by any publicly-trusted CA for the target hostname is accepted, breaking the intended pin and enabling MITM read and tamper of the HTTPS exchange.
Affected applications are those that use undici's ProxyAgent (or Socks5ProxyAgent directly) with SOCKS5 AND rely on requestTls for TLS scope restriction. The bug was introduced in undici 7.23.0 when SOCKS5 support was added.
Patches:
Upgrade to undici v7.28.0 or v8.5.0.
Workarounds:
No workaround is available within the SOCKS5 path. If a SOCKS5 proxy with TLS scope restriction is required and an upgrade is not yet possible, route the traffic through an HTTP-proxy ProxyAgent instead, where requestTls is honored correctly.
Source: OX vulnerability database
Severity
7.4 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness: CWE-295
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | undici | >=7.23.0, <7.28.0>=8.0.0, <8.5.0 | 7.28.08.5.0 |
Open a package to see all its vulnerabilities.
Operating systems · 83 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | nodejs | 0:24.17.0-1.azl3 |
Oracle Linux 2 releases · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | npm | 1:11.16.0-1.24.18.0.1.module+el8.10.0+90961+a86f8457 |
| 8 | nodejs +4 | 1:24.18.0-1.module+el8.10.0+90961+a86f8457 |
| 8 | nodejs-packaging +1 | 2021.06-6.module+el8.10.0+90961+a86f8457 |
| 8 | nodejs-nodemon | 3.0.3-1.module+el8.10.0+90961+a86f8457 |
| 8 | v8-13-6-devel | 3:13.6.233.17-1.24.18.0.1.module+el8.10.0+90961+a86f8457 |
| 9 | npm | 1:11.16.0-1.24.18.0.1.module+el9.8.0+90946+13dc792a |
4 more rows
Red Hat 5 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | openshift4-ose-monitoring-plugin-rhel9 | affected | — |
| 8 | openshift4-ose-monitoring-plugin-rhel9 | affected | — |
| 8 (nodejs:24) | nodejs-packaging +1 | 0:2021.06-6.module+el8.10.0+24190+49a46c75 | RHSA-2026:39868 |
| 8 (nodejs:24) | nodejs-nodemon | 0:3.0.3-1.module+el8.10.0+24190+49a46c75 | RHSA-2026:39868 |
| 8 (nodejs:24) | npm | 1:11.16.0-1.24.18.0.1.module+el8.10.0+24481+7a71fac8 | RHSA-2026:39868 |
| 8 (nodejs:24) | nodejs +4 | 1:24.18.0-1.module+el8.10.0+24481+7a71fac8 | RHSA-2026:39868 |
7 more rows
alma 3 releases · 7 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs24-npm | 1:11.16.0-1.24.18.0.1.el10_2 |
| 10 | nodejs24-docs | 1:24.18.0-1.el10_2 |
| 8 (nodejs:24) | npm | 1:11.16.0-1.24.18.0.1.module_el8.10.0+4228+2938bc94 |
| 8 (nodejs:24) | nodejs +4 | 1:24.18.0-1.module_el8.10.0+4228+2938bc94 |
| 8 (nodejs:24) | nodejs-packaging +1 | 2021.06-6.module_el8.10.0+4086+70facd4a |
| 8 (nodejs:24) | nodejs-nodemon | 3.0.3-1.module_el8.10.0+4061+f8ceeab9 |
6 more rows
amazon linux 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nodejs24-npm | 1:11.16.0-1.24.18.0.1.amzn2023.0.1 |
| 2023 | nodejs24 +7 | 1:24.18.0-1.amzn2023.0.1 |
| 2023 | v8-13-6-devel | 3:13.6.233.17-1.24.18.0.1.amzn2023.0.1 |
chainguard 1 release · 15 packages
| Release | Package | Fixed in |
|---|---|---|
| py3-captum | 0.9.0-r1 | |
| commercial-gitlab-rails-ee-19-1 | 19.1.7-r3 | |
| commercial-gitlab-rails-ee-fips-19-1 | 19.1.9-r0 | |
| commercial-gitlab-rails-ee-19-2 +1 | 19.2.7-r1 | |
| commercial-gitlab-rails-ee-19-3 +1 | 19.3.3-r1 | |
| vitess-24 | 24.0.3-r7 |
9 more rows
debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 13 | node-undici | affected |
| 14 | node-undici | 8.5.0+dfsg+~cs3.2.0-1 |
minimos 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| n8n | 2.28.3-r0 | |
| openclaw | 2026.6.9-r0 | |
| langfuse-3 | 3.194.0-r0 | |
| trigger-dev | 4.5.4-r0 | |
| kibana-9-3 | 9.3.8-r0 | |
| kibana-9-4 | 9.4.4-r0 |
rocky 3 releases · 7 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs24-npm | 1:11.16.0-1.24.18.0.1.el10_2 |
| 10 | nodejs24 +4 | 1:24.18.0-1.el10_2 |
| 8 (nodejs:24) | npm | 1:11.16.0-1.24.18.0.1.module+el8.10.0+40252+a58646bc |
| 8 (nodejs:24) | nodejs +4 | 1:24.18.0-1.module+el8.10.0+40252+a58646bc |
| 8 (nodejs:24) | nodejs-packaging +1 | 2021.06-6.module+el8.10.0+40048+6d99f608 |
| 8 (nodejs:24) | nodejs-packaging +1 | 2021.06-6.module+el8.10.0+40171+8fa9c325 |
11 more rows
wolfi 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| vitess-24 | 24.0.3-r7 | |
| langfuse-3 | 3.225.7-r6 | |
| code-server | 4.125.0-r2 | |
| renovate | 43.247.0-r0 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22380
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:22934
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:34342
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:35841
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:35891
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:36621
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:36754
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:36820
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:38236
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:39868
Show all 77 references
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:41929
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:47728
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:48124
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:48151
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:56366
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:56431
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:57013
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:60520
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:65126
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:7378
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-9697
- bugzilla.redhat.com https://bugzilla.redhat.com/2476810
- bugzilla.redhat.com https://bugzilla.redhat.com/2489980
- bugzilla.redhat.com https://bugzilla.redhat.com/2490000
- bugzilla.redhat.com https://bugzilla.redhat.com/2490006
- bugzilla.redhat.com https://bugzilla.redhat.com/2490008
- bugzilla.redhat.com https://bugzilla.redhat.com/2490018
- bugzilla.redhat.com https://bugzilla.redhat.com/2490024
- bugzilla.redhat.com https://bugzilla.redhat.com/2493325
- bugzilla.redhat.com https://bugzilla.redhat.com/2493326
- bugzilla.redhat.com https://bugzilla.redhat.com/2493329
- bugzilla.redhat.com https://bugzilla.redhat.com/2493331
- bugzilla.redhat.com https://bugzilla.redhat.com/2493332
- bugzilla.redhat.com https://bugzilla.redhat.com/2493333
- bugzilla.redhat.com https://bugzilla.redhat.com/2493335
- bugzilla.redhat.com https://bugzilla.redhat.com/2493337
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2476810
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2489980
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2490000
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2490006
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2490008
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2490018
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2490024
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493325
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493326
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493329
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493331
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493332
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493333
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493335
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493337
- cna.openjsf.org https://cna.openjsf.org/security-advisories.html
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-11525
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-12151
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42338
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48615
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48618
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48619
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48928
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48930
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48933
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48934
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48935
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-6733
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-6734
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-9678
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-9697
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2026-35891.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2026:39868
- github.com https://github.com/nodejs/undici
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-vmh5-mc38-953g
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-9697.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-39868.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-9697
- security.access.redhat.com https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9697.json
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-9697
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.