Improper Certificate Validation Affecting undici package, versions >=4.0.0 <6.29.1>=7.0.0 <7.30.1>=8.0.0 <8.12.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th 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-21181005
  • published18 Oct 2026
  • disclosed15 Oct 2026
  • creditEurico Nicacio, Sanjeev Kumar, BlueN0r

Introduced: 15 Oct 2026

NewCVE-2026-109383  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade undici to version 6.29.1, 7.30.1, 8.12.2 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 via the Agent constructor in lib/dispatcher/agent.js, where TLS options passed as the tls parameter are silently dropped and never stored in kOptions. Because the tls field is not destructured and forwarded to the internal options object, any TLS configuration supplied by the caller - including custom CA certificates, certificate pinning, or hostname verification overrides - is ignored when connections are established. An attacker positioned on the network can exploit the resulting absence of TLS constraints to perform a MitM attack, intercepting or modifying HTTPS traffic that the caller believed was protected by the supplied TLS settings.

Workaround

Users who are not able to upgrade to the fixed version are advised to pass the TLS options through connect instead of tls. For proxied EnvHttpProxyAgent destinations, use requestTls / proxyTls.

CVSS Base Scores

version 4.0
version 3.1