PT-2026-53267 · Npm · Fast-Uri
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
fast-uri versions 2.3.1 through 3.1.2
fast-uri version 4.0.0
Description
The software fails to canonicalize Unicode Internationalized Domain Names (IDN) for HTTP-family URLs. This occurs because the IDN conversion path utilizes a helper missing from the global URL constructor, causing the host to remain in its original Unicode form. Consequently, the
normalize() and equal() functions return values that differ from a WHATWG-compatible URL parser. This can lead to host confusion, allowing attackers to bypass host-based policies such as denylists, loopback filtering, redirect validation, or outbound proxy routing when the application uses fast-uri for validation but passes the URL to Node's URL or fetch for the actual request.Recommendations
Upgrade to version 3.1.3 for the 3.x line.
Upgrade to version 4.0.1 for the 4.x line.
Enforce host policy using the same URL parser used for the actual request.
Reject non-ASCII hosts before performing policy checks.
Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Fast-Uri