PT-2022-13320 · Parse-Url+3 · Url-Parse+3

·

CVE-2022-0639

·

Published

2022-02-17

·

Updated

2025-12-16

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions url-parse versions prior to 1.5.7
Description The issue allows for authorization bypass through a user-controlled key. A specially crafted URL with an '@' sign but empty user info and no hostname, when parsed with url-parse, will return the incorrect href. This can lead to incorrect security decisions if the 'hostname' or 'origin' attributes of the output from url-parse are used in security decisions and the final 'href' attribute of the output is then used to make a request.
Recommendations For versions prior to 1.5.7, update to version 1.5.7 or later to resolve the issue. As a temporary workaround, consider validating the 'hostname' and 'origin' attributes of the output from url-parse to ensure they match expected values before using the 'href' attribute to make a request. Restrict the use of the parse() function with untrusted input until the issue is resolved.

Exploit

Fix

IDOR

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2022-0639
DLA-3336-1
DLA-4413-1
GHSA-8V38-PW62-9CW2
USN-5973-1

Affected Products

Debian
Linuxmint
Ubuntu
Url-Parse