High
undici validates redirect target's certificate against the wrong host
When an app follows redirects and the first request sets a TLS servername, undici keeps that name on cross-origin redirects and validates the redirect target's certificate against the first host instead. A man-in-the-middle can present a certificate for the first host and impersonate the redirect target.
6.29.27.30.48.14.1Am I affected?
You are affected if the installed version is older than the fixed version of its release line: 6.29.2, 7.30.4, 8.14.1. Check the version you have and update to the fixed version of your line or later. The fixed versions are verified against a vendor or advisory source.
Affected software and versions
| Package | Ecosystem | Affected | Fixed in |
|---|---|---|---|
undici | other | >=8.0.0, <8.14.1 | 8.14.1 |
undici | other | >=7.0.0, <7.30.4 | 7.30.4 |
undici | other | >=6.8.0, <6.29.2 | 6.29.2 |
A fixed version is shown only when it is verified against a vendor or advisory source.
Who should check
Node.js projects using undici 6.8.0 or higher but below 6.29.2, 7.0.0 or higher but below 7.30.4, or 8.0.0 or higher but below 8.14.1, on macOS, Windows, or Linux.
Expected outcome after remediation
Report which undici versions were found, update every affected copy to the matching fixed version, reinstall dependencies, and confirm no undici version in the affected ranges remains.
Get the fix
FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 5893 and your operating system.
Related undici incidents
- undici HTTP client crash on closed connection under backpressureHigh8.4.1
- undici drops app-configured TLS options on some request routesHigh8.14.1
- undici HTTP/2 stream bug: uncaught error crashes the Node.js processHigh8.14.1
- undici retry bug crashes Node.js apps on resumed responsesHigh8.14.1
- undici HTTP client can get stuck in an infinite reconnect replay loopHigh8.14.1
- undici cache stores can be forced into unbounded memory useHigh8.14.1