Sceawere

Vulnerability Detail

CVE-2026-76172UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

fast-uri Scheme Decoding Parser Bypass

Vulnerability Metadata

Severity
High
Score / CVSS
7.5
Creation Date
4h ago
Vendor
fast-uri
Product
fast-uri
Attack Type
CWE-177: Improper Handling of URL Encoding (Hex Encoding)
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack Complexity
LOW

Narrative and Response

Description

fast-uri is a URI parser for Node.js. During parsing it runs a legacy decoding pass over the scheme component and never re-escapes the result, and serialization writes the scheme back out verbatim, unlike the host component which is re-escaped. As a result an input whose scheme carries percent-encoded slashes parses as a scheme with no authority, so the parsed host and error are both undefined, yet resolving or normalizing that same input emits a network-path reference whose authority is attacker-chosen and re-parses to that host. An application that allowlists on the parsed host, or treats a reference with no authority as safe to resolve against its base, gets the opposite of what it checked, giving an off-site redirect, server-side request forgery, or address-policy bypass. The legacy decoder also expands non-standard escape forms, widening the issue past upstream filters, and control characters in the scheme can reach the output as raw carriage return and line feed. 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 reject a scheme that is not valid after decoding. Users should upgrade to a patched version.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "7.5",
  "pubDate": "2026-08-24T11:16:40.723Z",
  "pubdate": "2026-08-24T11:16:40.723Z",
  "executiveSummary": "A URI parsing vulnerability exists in the fast-uri Node.js library, specifically involving improper handling and legacy decoding of the scheme component.\nThe vulnerability allows an attacker to supply a specially crafted input URI containing percent-encoded slashes or non-standard escape sequences within the scheme, which bypasses parsing security checks.\nWhen applications rely on the parsed host component for security decisions such as allowlisting or safely resolving relative references, the mismatch between the parsed output and the normalized or serialized output leads to severe security bypasses.\nThe resulting impact includes open redirection, server-side request forgery (SSRF), and address-policy bypasses.\nAffected products include fast-uri versions 2.3.1 up to 2.4.5, 3.0.0 up to 3.1.6, and 4.0.0 up to 4.1.3.\nExploitation requires an attacker to supply malicious URI inputs to an application that processes untrusted URIs without enforcing strict validation on scheme components post-decoding.",
  "technicalDetails": "The vulnerability resides in the URI parsing and serialization logic of the fast-uri package for Node.js.\nDuring the parsing phase, the library executes a legacy decoding pass over the scheme component and fails to re-escape the resulting output.\nConversely, serialization writes the scheme component back out verbatim without applying the re-escaping mechanisms utilized for other components like the host.\nWhen an input URI carries percent-encoded slashes within its scheme, the parser misinterprets the structure, resulting in a parsed URI where the scheme yields no authority, rendering both the parsed host and error fields as undefined.\nHowever, when that identical input is subsequently resolved or normalized by the library, it emits a network-path reference containing an attacker-chosen authority that successfully re-parses to the injected host.\nFurthermore, the legacy decoder improperly expands non-standard escape forms, bypassing upstream filters, and permits raw control characters such as carriage returns and line feeds to reach the output stream.\nApplications that perform security checks by allowlisting on the initially parsed host, or those that assume a reference lacking a parsed authority is safe to resolve against a base URI, encounter a logic inversion.\nThe step-by-step attack flow involves an attacker submitting a crafted URI with an encoded scheme, the application validating the undefined or benign parsed host, and the application subsequently resolving or normalizing the URI to trigger an off-site redirect, SSRF, or address-policy bypass to an unintended external resource.\nThe vulnerability affects versions 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."
}
CVE-2026-76172: fast-uri Scheme Decoding Parser Bypass (HIGH Severity, CVSS: 7.5) - Sceawere