CVE-2026-141996

7.4High

Published Dec 5, 2026 · NVD status: Awaiting Analysis · AI triage by gemini-3.1-flash-lite

7.4CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
High
Privileges
None
User action
None
Impact
High impact on confidentiality, integrity
Weakness
CWE-295

What an attacker gets

An attacker can perform a man-in-the-middle attack to intercept or modify traffic during cross-origin redirects. This requires the attacker to hold a valid certificate for the initial host and be able to intercept traffic to the redirect target.

Root cause

The redirect interceptor incorrectly reuses the TLS servername from the initial request when following cross-origin redirects, causing certificate validation to fail against the wrong hostname.

Affected versions

undici 6.8.0 through 6.29.1, 7.0.0 through 7.30.3, and 8.0.0 through 8.14.0

CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Fix & remediation

Upgrade to undici 6.29.2, 7.30.4, or 8.14.1. If you cannot upgrade, disable automatic redirects and handle them manually in your application code.

remediation — bash
$ npm install undici@latest

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-141996

More fully triaged vulnerabilities you may want to check next.