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.

Product
Systems
macOSWindowsLinux
Fixed in
6.29.27.30.48.14.1
CVSS
7.4
Weakness
CWE-295
Source
Get the fix in Telegram

Am 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

PackageEcosystemAffectedFixed in
undiciother>=8.0.0, <8.14.18.14.1
undiciother>=7.0.0, <7.30.47.30.4
undiciother>=6.8.0, <6.29.26.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

All undici incidents