Improper Certificate Validation Affecting undici package, versions >=7.23.0 <7.28.0>=8.0.0 <8.5.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.48% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-UNDICI-17372609
  • published18 Jun 2026
  • disclosed17 Jun 2026
  • credittonghuaroot (童话)

Introduced: 17 Jun 2026

CVE-2026-9697  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade undici to version 7.28.0, 8.5.0 or higher.

Overview

undici is an An HTTP/1.1 client, written from scratch for Node.js

Affected versions of this package are vulnerable to Improper Certificate Validation in the ProxyAgent when configured with a SOCKS5 proxy URI, which causes the requestTls option to be silently dropped. An attacker can intercept and tamper with HTTPS traffic by exploiting the fallback to the default trust store, thereby bypassing user-configured TLS restrictions.

Note: This is only exploitable if the application uses a SOCKS5 proxy and relies on requestTls for TLS scope restriction.

Workaround

This vulnerability can be mitigated by routing traffic through an HTTP-proxy ProxyAgent instead of SOCKS5, where requestTls is honored correctly.

CVSS Base Scores

version 4.0
version 3.1