# CVE-2026-9697: undici vulnerable to TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgent

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.46% (percentile 42, 2026-12-03)
- **CWE:** CWE-295
- **Aliases:** GHSA-vmh5-mc38-953g
- **Published:** 2026-06-17T16:46:42.706Z
- **Modified:** 2026-09-10T13:20:34.513Z

## Who should check

- Projects that depend on npm package undici (\>= 7.23.0, \< 7.28.0)
- Anyone running undici \>= 7.23.0, \< 7.28.0; \>= 8.0.0, \< 8.5.0

## 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.

## Affected and fixed versions

- npm `undici`: affected \>= 7.23.0, \< 7.28.0; fixed 7.28.0, 8.5.0 (osv)
- undici: \>= 7.23.0, \< 7.28.0; \>= 8.0.0, \< 8.5.0 (cvelist)

## Mitigation

- Upgrade undici to one of 7.28.0, 8.5.0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-9697. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-9697.md
Affected: undici >= 7.23.0, < 7.28.0
Fixed in: 7.28.0, 8.5.0

Steps:
1. Search this machine and project for undici (npm), undici: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-9697 being exploited?

There is no confirmed exploitation: CVE-2026-9697 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-12-03).

### How serious is CVE-2026-9697?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-9697?

undici \>= 7.23.0, \< 7.28.0.

### Is there a fix for CVE-2026-9697?

Yes. Fixed in 7.28.0, 8.5.0. Upgrade undici to one of 7.28.0, 8.5.0 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-9697?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/nodejs/undici/security/advisories/GHSA-vmh5-mc38-953g>
- vendor: <https://cna.openjsf.org/security-advisories.html>
- vendor: <https://access.redhat.com/errata/RHSA-2026:48151>
- vendor: <https://access.redhat.com/errata/RHSA-2026:35841>
- vendor: <https://access.redhat.com/errata/RHSA-2026:39868>
- vendor: <https://access.redhat.com/errata/RHSA-2026:35891>
- vendor: <https://access.redhat.com/errata/RHSA-2026:34342>
- vendor: <https://access.redhat.com/errata/RHSA-2026:36754>
- vendor: <https://access.redhat.com/errata/RHSA-2026:41929>
- vendor: <https://access.redhat.com/errata/RHSA-2026:38236>
- vendor: <https://access.redhat.com/errata/RHSA-2026:7378>
- vendor: <https://access.redhat.com/errata/RHSA-2026:22380>
- vendor: <https://access.redhat.com/errata/RHSA-2026:22934>
- vendor: <https://access.redhat.com/errata/RHSA-2026:65126>
- vendor: <https://access.redhat.com/errata/RHSA-2026:60520>
- vendor: <https://access.redhat.com/errata/RHSA-2026:36621>
- vendor: <https://access.redhat.com/errata/RHSA-2026:47728>
- vendor: <https://access.redhat.com/errata/RHSA-2026:48124>
- vendor: <https://access.redhat.com/errata/RHSA-2026:36820>
- vendor: <https://access.redhat.com/errata/RHSA-2026:56431>
- vendor: <https://access.redhat.com/errata/RHSA-2026:56366>
- vendor: <https://access.redhat.com/errata/RHSA-2026:57013>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-9697>
- other: <https://access.redhat.com/security/cve/CVE-2026-9697>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2490018>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9697.json>
- other: <https://github.com/nodejs/undici>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-9697>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-vmh5-mc38-953g> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-9697> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-9697>
