GHSA-5634-rv46-48jf Cross-Site Scripting in bleach

Not scored Published

Attackers can bypass HTML sanitization to execute arbitrary JavaScript in victim browsers via Cross-Site Scripting.

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
None listed

What is GHSA-5634-rv46-48jf?

GHSA-5634-rv46-48jf is a cross-site scripting vulnerability in bleach, published on 3 Sep 2020. 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

All versions of bleach are vulnerable to Cross-Site Scripting. It is possible to bypass the package's HTML sanitization with payloads such as "<<script><</script>script>alert('xss');</<script><</script>script>" regardless of the passed options. This may allow attackers to execute arbitrary JavaScript in the victim's browser.

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Which versions are affected by GHSA-5634-rv46-48jf?

2 open source packages ship an affected version, including bleach.

PackageAffectedFixed in
bleach npmFrom 0.0.0None
bleach npmFrom 0.0.0None

How do I fix GHSA-5634-rv46-48jf?

No fix has been published for GHSA-5634-rv46-48jf yet. Limit exposure of the affected software until one is available.

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 GHSA-5634-rv46-48jf being exploited?

There is no known exploitation of GHSA-5634-rv46-48jf in the wild and no public exploit code.

Sources

Is GHSA-5634-rv46-48jf in your software?

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

Check your SBOMs for free