{"id":"CVE-2023-43643","published":"2023-10-09T13:31:46Z","modified":"2024-09-19T13:57:25Z","title":"mXSS in AntiSamy","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 version 1.7.4, 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 and also allow for certain tags at the same time. As a result, certain crafty inputs can result in elements in comment tags being interpreted as executable when using AntiSamy's sanitized output. This issue has been patched in AntiSamy 1.7.4 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.00541,"percentile":0.46393,"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-pcf2-gh6g-h5r2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nahsra/antisamy/releases/tag/v1.7.4","tags":["x_refsource_MISC"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":9.28},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"nahsra","affectedVersions":[{"vendor":"nahsra","product":"antisamy","versions":["<= 1.7.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-19T13:15:16.197522Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.owasp.antisamy:antisamy","vulnerableRanges":["<1.7.4"],"patched":["1.7.4"],"from":["GHSA-pcf2-gh6g-h5r2"],"provenance":"source"}],"summary":{"text":"A flawed HTML parsing in the AntiSamy library (product: antisamy, by nahsra) allows certain crafted inputs to be sanitized incorrectly, so that content inside comment tags can be interpreted as executable when the sanitized output is used.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:29Z"},"euvd":{"id":"EUVD-2023-2788","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nahsra-antisamy-cve-2023-43643","packageHistory":[{"cve":"CVE-2021-35043","published":"2021-07-19","fixed":"1.6.4","kev":false},{"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,"link":{"from":"CVE-2022-29577","to":"CVE-2023-43643","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.owasp.antisamy:antisamy","fromFixed":"1.6.7","toFixed":"1.7.4","daysApart":536}]}},{"cve":"CVE-2023-43643","published":"2023-10-09","fixed":"1.7.4","kev":false},{"cve":"CVE-2024-23635","published":"2024-02-02","fixed":"1.7.5","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"}]}}],"package":"Maven:org.owasp.antisamy:antisamy"}}