CVE-2022-2217 Cross-site Scripting (XSS) - Generic in ionicabizau/parse-url
An attacker can inject malicious scripts via URL parsing in the parse-url library, potentially executing code in the user's browser context.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-2217?
CVE-2022-2217 is a critical cross-site scripting vulnerability in ionicabizau/parse-url, published on 27 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Cross-site Scripting (XSS) - Generic in GitHub repository ionicabizau/parse-url prior to 7.0.0.
Weakness: CWE-79
Which versions are affected by CVE-2022-2217?
2 open source packages ship an affected version, including parse-url. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
parse-url npm | All versions | 6.0.1 |
parse-url npm | All versions | 6.0.1 |
Products include Parse-Url Project Parse-Url.
How do I fix CVE-2022-2217?
Upgrade parse-url to 6.0.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-2217 being exploited?
There is no known exploitation of CVE-2022-2217 in the wild and no public exploit code.
Other vulnerabilities in ionicabizau/parse-url
- CVE-2022-3224 Misinterpretation of Input in ionicabizau/parse-url
- CVE-2022-2216 Server-Side Request Forgery (SSRF) in ionicabizau/parse-url
- CVE-2022-2900 Server-Side Request Forgery (SSRF) in ionicabizau/parse-url
- CVE-2022-2218 Cross-site Scripting (XSS) - Stored in ionicabizau/parse-url
- CVE-2022-0722 Exposure of Sensitive Information to an Unauthorized Actor in ionicabizau/parse-url
Sources
Also known as GHSA-q6wq-5p59-983w.