{"cve":"CVE-2024-23635","nvd":{"published":"2024-02-02T17:15:11.527","modified":"2026-06-17T07:13:16.540","status":"Modified","description":"AntiSamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources. Prior to 1.7.5, there is a potential for a mutation XSS (mXSS) vulnerability in AntiSamy caused by flawed parsing of the HTML being sanitized. To be subject to this vulnerability the `preserveComments` directive must be enabled in your policy file. As a result, certain crafty inputs can result in elements in comment tags being interpreted as executable when using AntiSamy's sanitized output. Patched in AntiSamy 1.7.5 and later.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-79"],"references":["https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq","https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq"],"products":["antisamy_project:antisamy"],"source":"nvd","synced_at":"2026-10-19T21:44:57.175229480+00:00"},"epss":{"cve":"CVE-2024-23635","score":0.00368,"percentile":0.30665,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2mrq-w8pv-5pvq","url":"https://osv.dev/vulnerability/GHSA-2mrq-w8pv-5pvq","summary":"Malicious input can provoke XSS when preserving comments","modified":"2026-09-10T03:50:05.305508749Z","packages":[{"ecosystem":"Maven","name":"org.owasp.antisamy:antisamy","purl":"pkg:maven/org.owasp.antisamy/antisamy","ranges":["<1.7.5"],"fixed":["1.7.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}