CVE-2022-0639
url-parse Incorrectly parses URLs that include an '@'
Description
A specially crafted URL with an '@' sign but empty user info and no hostname, when parsed with url-parse, url-parse will return the incorrect href. In particular, ```js parse(\"http://@/127.0.0.1\") ``` Will return: ```yaml { slashes: true, protocol: 'http:', hash: '', query: '', pathname: '/127.0.0.1', auth: '', host: '', port: '', hostname: '', password: '', username: '', origin: 'null', href: 'http:///127.0.0.1' } ``` 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, the decision may be incorrect.
How to fix CVE-2022-0639
To remediate CVE-2022-0639, upgrade the affected package to a fixed version below.
- —upgrade to 1.5.3-1+deb11u3 or later
- —upgrade to 1.5.3-1+deb11u3 or later
- —upgrade to 1.5.7 or later
Is CVE-2022-0639 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- from 0, < 1.5.3-1+deb11u3
- from 0, < 1.5.3-1+deb11u3
- >= 1.0.0, < 1.5.7
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |