{"id":"GHSA-vmh5-mc38-953g","revision":"f825f4ef146447bea88a332625eaf862","records":[{"revision":"f825f4ef146447bea88a332625eaf862","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-vmh5-mc38-953g","aliases":["CVE-2026-9697"],"title":"undici vulnerable to TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgent","description":"## Impact\n\nundici'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.\n\nApplications 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.\n\nAffected 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.\n\n## Patches\n\nUpgrade to undici v7.28.0 or v8.5.0.\n\n## Workarounds\n\nNo 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.","state":0,"publishedAt":"2026-06-18T14:28:21+00:00","modifiedAt":"2026-09-10T03:51:09.5887563+00:00","affected":[{"ecosystem":"npm","name":"undici","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.23.0"},{"kind":"fixed","version":"7.28.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"undici","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"8.0.0"},{"kind":"fixed","version":"8.5.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/nodejs/undici/security/advisories/GHSA-vmh5-mc38-953g","https://nvd.nist.gov/vuln/detail/CVE-2026-9697","https://cna.openjsf.org/security-advisories.html","https://github.com/nodejs/undici"],"sourceUrl":"https://github.com/advisories/GHSA-vmh5-mc38-953g","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vmh5-mc38-953g","identifiers":["GHSA-vmh5-mc38-953g","CVE-2026-9697"]},"retained":false,"historicalAffected":[]}],"coverage":[]}