{"id":"CVE-2024-23635","published":"2024-02-02T16:32:50Z","modified":"2024-08-01T23:06:25Z","title":"AntiSamy malicious input can provoke XSS when preserving comments","vendor":"nahsra","product":"antisamy","tier":"tail","description":{"text":"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. ","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00368,"percentile":0.3143,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":6.29},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"nahsra","affectedVersions":[{"vendor":"nahsra","product":"antisamy","versions":["< 1.7.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-07T18:47:07.109365Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.owasp.antisamy:antisamy","vulnerableRanges":["<1.7.5"],"patched":["1.7.5"],"from":["GHSA-2mrq-w8pv-5pvq"],"provenance":"source"}],"summary":{"text":"The AntiSamy HTML sanitization library (nahsra's antisamy, versions before 1.7.5) contains a flaw in its HTML parsing that can allow a mutation cross-site scripting (mXSS) issue, but only when the preserveComments directive is enabled in the policy file. An attacker who can supply crafted untrusted input can cause content inside comment tags to be interpreted as executable script in the sanitized output, requiring a victim user to interact with the page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:26Z"},"euvd":{"id":"EUVD-2024-0472","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nahsra-antisamy-cve-2023-43643","packageHistory":[{"cve":"CVE-2022-28367","published":"2022-04-21","fixed":"1.6.6","kev":false},{"cve":"CVE-2022-29577","published":"2022-04-21","fixed":"1.6.7","kev":false},{"cve":"CVE-2023-43643","published":"2023-10-09","fixed":"1.7.4","kev":false,"link":{"from":"CVE-2023-43643","to":"CVE-2024-23635","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.owasp.antisamy:antisamy","fromFixed":"1.7.4","toFixed":"1.7.5","daysApart":116},{"kind":"similar","provenance":"machine","score":0.99,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2024-23635","published":"2024-02-02","fixed":"1.7.5","kev":false}],"package":"Maven:org.owasp.antisamy:antisamy"}}