GHSA-5p28-63mc-cgr9 Cross-Site Scripting bypass in html-purify

Not scored Published

An XSS vulnerability in html-purify allows attackers to execute JavaScript via unsanitized object tag data attributes, requiring user interaction.

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-5p28-63mc-cgr9?

GHSA-5p28-63mc-cgr9 is a cross-site scripting vulnerability in html-purify, published on 4 Dec 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 html-purify are vulnerable to cross-site scripting. The data attribute inside of object tags is not properly sanitized and allows javascript URIs leading to code execution.

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

Which versions are affected by GHSA-5p28-63mc-cgr9?

2 open source packages ship an affected version, including html-purify.

PackageAffectedFixed in
html-purify npmAll versions to 1.1.0None
html-purify npmAll versions to 1.1.0None

How do I fix GHSA-5p28-63mc-cgr9?

No fix has been published for GHSA-5p28-63mc-cgr9 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-5p28-63mc-cgr9 being exploited?

There is no known exploitation of GHSA-5p28-63mc-cgr9 in the wild and no public exploit code.

Sources

Is GHSA-5p28-63mc-cgr9 in your software?

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

Check your SBOMs for free