Skip to content

Cross-Site Scripting bypass in html-purify

High severity GitHub Reviewed Published Dec 4, 2020 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

npm html-purify (npm)

Affected versions

<= 1.1.0

Patched versions

None

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.

References

Reviewed Dec 4, 2020
Published to the GitHub Advisory Database Dec 4, 2020
Last updated Jan 9, 2023

Severity

High

EPSS score

Weaknesses

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Learn more on MITRE.

CVE ID

No known CVE

GHSA ID

GHSA-5p28-63mc-cgr9

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.