CVE-2022-2217 Cross-site Scripting (XSS) - Generic in ionicabizau/parse-url

Critical 9.1 Published Updated

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.

PackageAffectedFixed in
parse-url npmAll versions6.0.1
parse-url npmAll versions6.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.

Sources

Also known as GHSA-q6wq-5p59-983w.

Is CVE-2022-2217 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free