# CVE-2019-25225: sanitize-html is vulnerable to XSS through incomprehensive sanitization

- Severity: Medium 6.1 (CVSS:3.1, scored by Checkmarx) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-08T10:02:42.945Z
- Modified: 2026-06-17T02:31:47.607Z
- Also known as: GHSA-qhxp-v273-g94h
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Checkmarx

## Description

`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.

(As written by CVE List.)

## Affected

- sanitize-html: before 2.0.0-beta
- sanitize-html (npm): before 2.0.0-beta
- apostrophecms sanitize-html: before 2.0.0

## Every score

- Checkmarx: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225> (exploit, third-party-advisory, web)
- <https://github.com/apostrophecms/sanitize-html/issues/293> (issue-tracking, vendor-advisory, web)
- <https://github.com/apostrophecms/sanitize-html/pull/156> (issue-tracking, patch, web)
- <https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-25225> (advisory)
- <https://github.com/apostrophecms/sanitize-html> (package)

## Sources

- CVE List: [CVE-2019-25225](https://www.cve.org/CVERecord?id=CVE-2019-25225), CVE Terms of Use, modified 2025-09-08
- GitHub Advisory Database: [GHSA-qhxp-v273-g94h](https://github.com/advisories/GHSA-qhxp-v273-g94h), CC-BY-4.0, modified 2025-09-12
- NVD: [CVE-2019-25225](https://nvd.nist.gov/vuln/detail/CVE-2019-25225), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-25225 · Whole record: https://cve.day/CVE-2019-25225.json · Rebuilt by cve.day 2026-11-25T22:57:50.294Z
