Home › CVE › JavaScript
CVE-2026-141996 — undici
One of 14 undici vulnerabilities published together by NVD: our article covers all of them.
JavaScriptWebVulnerabilitiesSummary
undici is an HTTP client for Node.js. In versions 6.8.0 through 6.29.1, 7.0.0 through 7.30.3, and 8.0.0 through 8.14.0, the redirect interceptor builds each follow-up request from the options of the previous one and, on a cross-origin redirect, kept the TLS servername of the first request, so the redirect target's certificate was validated against the first host's name instead of its own. Applications are affected when they follow redirects with the redirect interceptor and the first request carries a servername, either passed as a request option or set by the dns interceptor composed outside the redirect interceptor, and requests sent through a ProxyAgent tunnel without requestTls are affected in the same way, while fetch is not affected. A party that holds a valid certificate for the first host and can intercept traffic to the redirect target can impersonate the target and read or modify the redirected request and its response. The issue is fixed in undici 6.29.2, 7.30.4, and 8.14.1, and users should upgrade to one of those versions or later. As a workaround, compose the dns interceptor inside the redirect interceptor and do not pass a servername on requests that follow redirects, or disable automatic redirects and follow them in application code.
Severity breakdown
High · 7.4
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality and integrity, none on availability
Weakness
- CWE-295: Improper Certificate Validation
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| undici | ≥ 8.0.0, < 8.14.1 | 8.14.1 |
| ≥ 7.0.0, < 7.30.4 | 7.30.4 | |
| ≥ 6.8.0, < 6.29.2 | 6.29.2 |
References by type
Vendor advisories
Other references
Affected
- undici
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-141996?
undici is an HTTP client for Node.js. In versions 6.8.0 through 6.29.1, 7.0.0 through 7.30.3, and 8.0.0 through 8.14.0, the redirect interceptor builds each follow-up request from the options of the previous one and, on a cross-origin redirect, kept the TLS servername of the first request, so the redirect target's certificate was validated against the first host's name instead of its own. Weakness type: Improper Certificate Validation (CWE-295).
How severe is CVE-2026-141996?
CVE-2026-141996 has a CVSS 3.1 base score of 7.4 (high), from the CNA. An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-141996 being exploited?
Not as far as is known: CVE-2026-141996 is not in CISA's Known Exploited Vulnerabilities catalog as of December 6, 2026.
Which versions are affected by CVE-2026-141996?
undici ≥ 8.0.0, < 8.14.1 (fixed in 8.14.1); undici ≥ 7.0.0, < 7.30.4 (fixed in 7.30.4); undici ≥ 6.8.0, < 6.29.2 (fixed in 6.29.2).
How do I fix CVE-2026-141996?
Update to a fixed release: undici 8.14.1; undici 7.30.4; undici 6.29.2.