CVE-2022-48345 @braintree/sanitize-url Cross-site Scripting vulnerability

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts via HTML entities in URLs using the sanitize-url library, affecting applications relying on it for security.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-48345?

CVE-2022-48345 is a medium-severity cross-site scripting vulnerability in n/a, published on 24 Feb 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

sanitize-url (aka @braintree/sanitize-url) before 6.0.2 allows XSS via HTML entities.

Weakness: CWE-79

Which versions are affected by CVE-2022-48345?

2 open source packages ship an affected version, including @braintree/sanitize-url. It affects 1 product.

PackageAffectedFixed in
@braintree/sanitize-url npmAll versions6.0.1
@braintree/sanitize-url npmAll versions6.0.1

Products include Paypal Braintree\/Sanitize-Url.

How do I fix CVE-2022-48345?

Upgrade @braintree/sanitize-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-48345 being exploited?

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

Sources

Also known as GHSA-q8gg-vj6m-hgmj, UBUNTU-CVE-2022-48345.

Is CVE-2022-48345 in your software?

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

Check your SBOMs for free