CVE-2026-9697
undici vulnerable to TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgent
Check your servers for CVE-2026-9697
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-9697 affects undici, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.46%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 41.4% of all scored CVEs. Scores of 2 Dec 2026.
The assessment of CISA (SSVC, 22 Jun 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-295 Improper Certificate Validation
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| undici |
affected from 7.23.0, before 7.28.0 unaffected 7.28.0 affected from 8.0.0, before 8.5.0 unaffected 8.5.0
Other versions: unaffected
|
Is my server affected?
Find the installed version of undici and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i undici
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-9697 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-9697RHEL, Rocky, Alma, Fedora
rpm -q undici
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-9697Alpine
apk list --installed | grep -i undiciWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-9697
trivy image --scanners vuln IMAGE | grep CVE-2026-9697
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://access.redhat.com/security/cve/CVE-2026-9697 access.redhat.com · vdb entry
- RHBZ#2490018 bugzilla.redhat.com · issue tracking
- https://access.redhat.com/errata/RHSA-2026:48151 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:35841 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:39868 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:35891 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:34342 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:36754 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:41929 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:38236 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:7378 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:22380 access.redhat.com · vendor advisory
10 more
- https://access.redhat.com/errata/RHSA-2026:22934 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:65126 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:60520 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:36621 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:47728 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:48124 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:36820 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:56431 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:56366 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:57013 access.redhat.com · vendor advisory
Other references
- https://github.com/nodejs/undici/security/advisories/GHSA-vmh5-mc38-953g github.com
- https://cna.openjsf.org/security-advisories.html cna.openjsf.org
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9697.json security.access.redhat.com
Source: the record CVE-2026-9697 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse