{"id":"CVE-2023-43643","summary":"mXSS in AntiSamy","details":"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. ","aliases":["GHSA-pcf2-gh6g-h5r2"],"modified":"2026-08-12T03:51:46.889238197Z","published":"2023-10-09T13:31:46.324Z","database_specific":{"cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43643.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/nahsra/antisamy/releases/tag/v1.7.4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43643.json"},{"type":"ADVISORY","url":"https://github.com/nahsra/antisamy/security/advisories/GHSA-pcf2-gh6g-h5r2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43643"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nahsra/antisamy","events":[{"introduced":"0"},{"fixed":"45c78f1b4de6e30ce18a7338fd6d200d60be1a05"}],"database_specific":{"cpe":"cpe:2.3:a:antisamy_project:antisamy:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"1.7.3"},{"fixed":"1.7.4"}],"source":["AFFECTED_FIELD","CPE_RANGE","REFERENCES"]}}],"versions":["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/cve-osv-conversion/osv-output/CVE-2023-43643.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}