{"id":"CVE-2019-25225","aliases":["CVE-2019-25225","GHSA-qhxp-v273-g94h"],"related":[],"kind":"vulnerability","state":"published","title":"sanitize-html is vulnerable to XSS through incomprehensive sanitization","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"`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.","source":"cvelist"}],"published":"2025-09-08T10:02:42.945Z","modified":"2026-06-17T02:31:47.607Z","severity":{"scorer":"Checkmarx","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"Checkmarx","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"npm","introduced":"0","fixed":"2.0.0-beta","status":"affected"}],"package":"sanitize-html","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.0-beta"}],"ecosystem":"npm","package":"sanitize-html","purl":"pkg:npm/sanitize-html","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.0.0"}],"vendor":"apostrophecms","product":"sanitize-html","cpe":"cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/apostrophecms/sanitize-html/issues/293","tags":["issue-tracking","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/apostrophecms/sanitize-html/pull/156","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25225","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apostrophecms/sanitize-html","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"Checkmarx","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-09-08T15:17:07.822Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-25225","url":"https://www.cve.org/CVERecord?id=CVE-2019-25225","licence":"CVE Terms of Use","modified":"2025-09-08T15:18:19.841Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qhxp-v273-g94h","url":"https://github.com/advisories/GHSA-qhxp-v273-g94h","licence":"CC-BY-4.0","modified":"2025-09-12T20:27:20.408Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-25225","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25225","licence":"Public domain","modified":"2026-06-17T02:31:47.607Z"}],"updatedAt":"2026-11-25T22:57:50.294Z","epss":{"score":0.00297,"percentile":0.2401,"date":"2026-12-02T12:00:21.000Z"}}