Loading HuntDB...

CVE-2017-16016

UNKNOWN
Published 2018-06-04T19:00:00Z
Actions:

Expert Analysis

Professional remediation guidance

Get tailored security recommendations from our analyst team for CVE-2017-16016. We'll provide specific mitigation strategies based on your environment and risk profile.

No CVSS data available

Description

Sanitize-html is a library for scrubbing html input of malicious values. Versions 1.11.1 and below are vulnerable to cross site scripting (XSS) in certain scenarios: If allowed at least one nonTextTags, the result is a potential XSS vulnerability.

Available Exploits

No exploits available for this CVE.

Related News

No news articles found for this CVE.

Affected Products

GitHub Security Advisories

Community-driven vulnerability intelligence from GitHub

✓ GitHub Reviewed MODERATE

Cross-Site Scripting in sanitize-html

GHSA-xc6g-ggrc-qq4r

Advisory Details

Affected versions of `sanitize-html` are vulnerable to cross-site scripting when allowedTags includes at least one `nonTextTag`. ## Proof of Concept ```js var sanitizeHtml = require('sanitize-html'); var dirty = '!<textarea>&lt;/textarea&gt;<svg/onload=prompt`xs`&gt;</textarea>!'; var clean = sanitizeHtml(dirty, { allowedTags: [ 'textarea' ] }); console.log(clean); // !<textarea></textarea><svg/onload=prompt`xs`></textarea>! ``` ## Recommendation Update to version 1.11.4 or later.

Affected Packages

npm sanitize-html
ECOSYSTEM: ≥0 <1.11.4

CVSS Scoring

CVSS Score

5.0

Advisory provided by GitHub Security Advisory Database. Published: November 9, 2018, Modified: September 8, 2023

References

Published: 2018-06-04T19:00:00Z
Last Modified: 2024-09-17T01:46:48.797Z
Copied to clipboard!