CVE-2026-141996
undici vulnerable to TLS certificate validation bypass via servername reused on cross-origin redirects
Description
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.
INFO
Published Date :
Dec. 5, 2026, 10:17 a.m.
Last Modified :
Dec. 5, 2026, 10:17 a.m.
Remotely Exploit :
No
Source :
ce714d77-add3-4f53-aff5-83d477b104bb
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | ce714d77-add3-4f53-aff5-83d477b104bb | ||||
| CVSS 3.1 | HIGH | MITRE-CVE |
Solution
- Upgrade undici to a fixed version.
- Compose dns interceptor inside redirect interceptor.
- Do not pass servername on redirecting requests.
- Disable automatic redirects and handle them manually.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-141996.
| URL | Resource |
|---|---|
| https://cna.openjsf.org/security-advisories.html | |
| https://github.com/nodejs/undici/security/advisories/GHSA-fgj4-8x8v-fqhm |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-141996 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-141996
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-141996 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-141996 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by ce714d77-add3-4f53-aff5-83d477b104bb
Dec. 05, 2026
Action Type Old Value New Value Added Description 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. Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N Added CWE CWE-295 Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/141xxx/CVE-2026-141996.json">CVE-2026-141996</a> Added Reference https://cna.openjsf.org/security-advisories.html Added Reference https://github.com/nodejs/undici/security/advisories/GHSA-fgj4-8x8v-fqhm