CVE-2022-1243 CRHTLF can lead to invalid protocol extraction potentially leading to XSS in medialize/uri.js

High 7.2 Published Updated

Attackers can inject malicious scripts via crafted URIs due to improper protocol extraction, affecting applications using the uri.js library.

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-1243?

CVE-2022-1243 is a high-severity cross-site scripting vulnerability in medialize/uri.js, published on 5 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

CRHTLF can lead to invalid protocol extraction potentially leading to XSS in GitHub repository medialize/uri.js prior to 1.19.11.

Weakness: CWE-20

Which versions are affected by CVE-2022-1243?

2 open source packages ship an affected version, including urijs. It affects 1 product.

PackageAffectedFixed in
urijs npmAll versions1.19.11
urijs npmAll versions1.19.11

Products include Uri.js Project Uri.js.

How do I fix CVE-2022-1243?

Upgrade urijs to 1.19.11 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-1243 being exploited?

There is no known exploitation of CVE-2022-1243 in the wild and no public exploit code.

Sources

Also known as GHSA-3vjf-82ff-p4r3.

Is CVE-2022-1243 in your software?

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

Check your SBOMs for free