REDHAT-BUG-2521779: High severity npm/fast-uri vulnerability

Published Aug 24, 2026
·
Updated

fast-uri is a URI parser for Node.js. Its custom parser for bracketed IPv6 literals does not validate the complete IPv6 grammar, so invalid trailing text in an authority can be silently discarded and a malformed attacker-controlled host is turned into a different valid IPv6 destination. For example, a bracketed literal with invalid trailing characters is normalized to the unspecified address, which a Node HTTP client then connects to a local service over loopback, and other malformed literals collapse to private-range addresses. No error is set on the parsed result, so an application checking the error field cannot detect the rewrite. An application that normalizes untrusted URLs before outbound requests, redirects, proxy routing, or address-policy enforcement can be redirected to a local or private IPv6 target, giving a server-side request forgery and address-policy bypass primitive. The affected versions are 2.3.1 up to but not including 2.4.5, 3.0.0 up to but not including 3.1.6, and 4.0.0 up to but not including 4.1.3. The issue is fixed in 2.4.5, 3.1.6, and 4.1.3, which validate bracketed IP literals against the full grammar and mark malformed literals as authority errors. Users should upgrade to a patched version.

Affected Software

1 affected component
npm/fast-uri>=2.3.1<2.4.5, >=3.0.0<3.1.6, >=4.0.0<4.1.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade fast-uri to a version that resolves this vulnerability.

    Fixed in 2.4.5
  2. Upgrade

    Upgrade fast-uri to a version that resolves this vulnerability.

    Fixed in 3.1.6
  3. Upgrade

    Upgrade fast-uri to a version that resolves this vulnerability.

    Fixed in 4.1.3

Event History

Aug 24, 2026
Data Sourced
via Red Hat·10:11 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are most exposed to this issue?

Applications that normalize untrusted URLs before making outbound requests, following redirects, selecting proxy routes, or enforcing address policies are exposed. The flaw can redirect those requests to loopback or private IPv6 destinations.

2

What does an attacker need to exploit it?

An attacker needs to control a URL or authority value that the application parses with fast-uri and then uses for an outbound request or routing decision. Malformed bracketed IPv6 literals can be normalized into different valid destinations without setting a parse error.

3

How can I determine whether my deployment is affected?

Check the installed fast-uri version. Affected ranges are 2.3.1 through before 2.4.5, 3.0.0 through before 3.1.6, and 4.0.0 through before 4.1.3; fixed versions are 2.4.5, 3.1.6, and 4.1.3.

4

What should be done if the application processes untrusted URLs?

Upgrade to the applicable fixed release. The fixed versions validate the complete bracketed IP-literal grammar and mark malformed literals as authority errors.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203