CVE-2022-1243 CRHTLF can lead to invalid protocol extraction potentially leading to XSS in medialize/uri.js
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.
| Package | Affected | Fixed in |
|---|---|---|
urijs npm | All versions | 1.19.11 |
urijs npm | All versions | 1.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.
Other vulnerabilities in medialize/uri.js
Sources
Also known as GHSA-3vjf-82ff-p4r3.