Skip to main content
← All vulnerabilities
CVE-2019-25225GHSA-QHXP-V273-G94H

`sanitize-html` prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS).

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.0-beta
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

`sanitize-html` prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS). The `sanitizeHtml()` function in `index.js` does not sanitize content when using the custom `transformTags` option, which is intended to convert attribute values into text. As a result, malicious input can be transformed into executable code.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • sanitize-html

    fixed in 2.0.0-beta

  • sanitize-htmlnpm

    fixed in 2.0.0-beta

References 4

GitHub · apostrophecms/sanitize-html

GitHub · Checkmarx/Vulnerabilities-Proofs-of-Concept