CVE-2026-109383: undici vulnerable to TLS certificate validation bypass via dropped tls options in Agent

Published Oct 15, 2026
·
Updated

undici is an HTTP client library for Node.js. In versions 4.0.0 through 6.29.0, 7.0.0 through 7.30.0, and 8.0.0 through 8.12.1, its Agent dispatcher passes its constructor options through a JSON-based deep clone before forwarding them to each per-origin pool, and because JSON cannot represent functions, a caller-supplied tls option containing a checkServerIdentity callback is silently dropped before it reaches the TLS layer. As a result, a TLS peer whose certificate a custom checkServerIdentity was written to reject, but which passes Node's default hostname and chain checks, is silently accepted. Because Agent is the default dispatcher behind request, fetch, and setGlobalDispatcher, this affects the path most applications use, and EnvHttpProxyAgent is affected on its direct and no-proxy routes as well, while only applications that pass a function-valued tls option such as a custom checkServerIdentity for certificate or public-key pinning are at risk. The issue is fixed in undici 6.29.1, 7.30.1, and 8.12.2, which preserve the tls option outside the JSON clone so custom verification callbacks are forwarded unchanged, and users should upgrade to one of those versions or later. As a workaround, pass the TLS options through connect instead of tls, or for proxied destinations use requestTls and proxyTls.

Affected Software

1 affected component
npm/undici>=4.0.0<=6.29.0, >=7.0.0<=7.30.0, >=8.0.0<=8.12.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 6.29.1
  2. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 7.30.1
  3. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 8.12.2
  4. Configuration

    Pass TLS options through connect instead of tls; for proxied destinations, use requestTls and proxyTls so custom certificate or public-key verification callbacks are forwarded.

    undici Agent TLS option forwarding = connect; requestTls and proxyTls for proxied destinations

Event History

Oct 15, 2026
CVE Published
via MITRE·06:34 PM
Data Sourced
via MITRE·06:34 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are actually exposed?

Only applications that provide a function-valued tls option, such as a custom checkServerIdentity callback for certificate or public-key pinning, are at risk. Applications relying only on Node.js's default hostname and certificate-chain validation are not affected by this behavior.

2

Does this affect the normal request and fetch paths?

Yes. Agent is the default dispatcher used by request, fetch, and setGlobalDispatcher, so applications using those APIs can be affected when they configure the vulnerable custom TLS callback. EnvHttpProxyAgent is also affected on direct and no-proxy routes.

3

What must an attacker be able to do to exploit this?

The attacker must present a TLS certificate that passes Node.js's default hostname and chain validation but would have been rejected by the application's custom checkServerIdentity callback. The vulnerable Agent drops that callback before the connection reaches the TLS layer.

4

How can I determine whether my deployment is affected, and what is the fix?

Check whether your installed undici version is 4.0.0 through 6.29.0, 7.0.0 through 7.30.0, or 8.0.0 through 8.12.1, and whether your application passes checkServerIdentity or another function-valued tls option through Agent. Upgrade to undici 6.29.1, 7.30.1, 8.12.2, or a later version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203