CVE-2019-25225
Apostrophecms Sanitize-html vulnerability
`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.
Affected products
Sanitize-html. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Apostrophecms Sanitize-html runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/apostrophecms/sanitize-html/issues/293 · Vendor Advisory
- github.com/apostrophecms/sanitize-html/commit/712cb6895825c8bb6ede71a16b42bade42abcaf3 · Patch
- github.com/apostrophecms/sanitize-html/pull/156 · Patch
- github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2019/CVE-2019-25225 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2019-25225
- github.com/advisories/GHSA-qhxp-v273-g94h
- nvd.nist.gov/vuln/detail/CVE-2019-25225
- cve.org/CVERecord?id=CVE-2019-25225
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.