Skip to content
Threat Feed
high advisory

undici: TLS certificate validation bypass in Agent (CVE-2026-109383)

The undici library fails to enforce custom TLS certificate validation callbacks in Agent constructor options due to a JSON-based cloning mechanism, potentially allowing invalid TLS connections.

CVE search metadata

CVE search record: CVE-2026-109383. Severity: high. CVSS: 7.4. EPSS: 0.18%. KEV: no. Product: undici (>= 4.0.0, < 6.29.1), undici (>= 7.0.0, < 7.30.1), undici (>= 8.0.0, < 8.12.2). Brief: undici: TLS certificate validation bypass in Agent (CVE-2026-109383). Brief link: https://feed.craftedsignal.io/briefs/2026-10-undici-tls-bypass/

Triage facts

Revision 1
Applicability
undici (>= 4.0.0, < 6.29.1), undici (>= 7.0.0, < 7.30.1) +1
Evidence
Unknown
Severity
High
Action
Elevated
Sources
1 public source
Freshness
Revision 1Oct 27, 23:58 UTC
Vulnerabilities
1 CVE
Source quality
B2Roughly even chance

undici's Agent constructor options undergo a JSON-based deep clone before being passed to origin Pools. Because JSON cannot represent functions, custom TLS check callbacks, such as checkServerIdentity, are silently dropped. This results in the omission of additional security validation for applications relying on custom certificate or public-key pinning. TLS connections will default to standard Node.js hostname and chain verification, bypassing more stringent custom policies defined by developers. This affects common entry points like request and fetch, as well as EnvHttpProxyAgent.

Impact

Applications implementing custom checkServerIdentity callbacks for enhanced TLS validation are vulnerable. These applications may accept TLS connections that should have been rejected by the custom policy, provided the connection passes standard Node.js default verification.

Recommendation

  • Upgrade undici to version 6.29.1, 7.30.1, or 8.12.2 to resolve the option handling logic.
  • Audit applications using undici Agent or EnvHttpProxyAgent that implement TLS configuration, specifically checking for the usage of checkServerIdentity or similar custom verification callbacks.
  • As a workaround, developers should pass TLS options through the connect option instead of the tls option for Agent instances, or use requestTls/proxyTls for EnvHttpProxyAgent destinations.

Immediate actions

Upgrade undici to 6.29.1, 7.30.1, or 8.12.2

Development Team 72h

Threat Hunt

Identify applications using undici Agent with custom tls configurations

T1553 medium medium confidence hunt now

Data: Source code audit for undici.Agent instantiation with tls option, Static analysis for checkServerIdentity usage in network client configurations

Mitigations

Implement workarounds using connect option instead of tls for Agent

immediate Development Team

CVE-2026-109383