{"id":"CVE-2024-23635","summary":"AntiSamy malicious input can provoke XSS when preserving comments","details":"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. ","aliases":["GHSA-2mrq-w8pv-5pvq"],"modified":"2026-05-18T05:58:46.614579080Z","published":"2024-02-02T16:32:50.470Z","database_specific":{"cwe_ids":["CWE-79"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/23xxx/CVE-2024-23635.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/23xxx/CVE-2024-23635.json"},{"type":"ADVISORY","url":"https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23635"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nahsra/antisamy","events":[{"introduced":"0"},{"fixed":"12a2e31d3855430c119480655c2bbbbb79a66ecd"}]}],"versions":["v1.7.4","v1.7.3","v1.7.2","v1.7.1","v1.7.0","v1.6.8","v1.6.7","v1.6.6.1","v1.6.6","v1.6.5","v1.6.4","1.6.3","v1.6.2","v1.6.1","v1.6.0","v1.5.13","v1.5.12","v1.5.11","v1.5.10","v1.5.9","v1.5.8","v1.5.7"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-23635.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}