fast-uri before 4.1.2, 3.1.5, and 2.4.4 requires a literal double forward slash to recognize a URI authority, so a reference that uses a backslash based introducer in place of it (backslash backslash, forward slash backslash, or backslash forward slash) is parsed with no authority and folds into the path. Node's native WHATWG URL parser instead treats a backslash as interchangeable with a forward slash for special schemes, so the two parsers extract different hosts from the same input. Applications that use fast-uri to enforce host based policy such as allowlists, SSRF filtering, or redirect validation before passing the same URL into Node's URL or fetch consumers can be steered to an unintended host. Upgrade to fast-uri 4.1.2, 3.1.5, or 2.4.4.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NOpenjsf Fast Uri
APPOpenjsf< 2.4.43.0.0 – 3.1.5 (excl.)4.0.0 – 4.1.2 (excl.)
Related vulnerabilities
fast-uri accepts a host that contains an unbalanced or misplaced authority bracket without reporting an error....
fast-uri serializes the port component of a URI without validating it. When recomposing the authority, the use...
fast-uri is a URI parser for Node.js. It canonicalizes a host to its ASCII form only when the input carries an...
fast-uri is a URI parser for Node.js. It decodes percent escapes in a hostname during parsing and then decodes...
fast-uri is a URI parser for Node.js. Its custom parser for bracketed IPv6 literals does not validate the comp...