{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-43643","id":"CVE-2023-43643","title":"mXSS in AntiSamy","description":"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 ","descriptionLong":"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. ","published":"2023-10-09T13:31:46.324Z","updated":"2026-10-28T02:30:45.795686262Z","reserved":"2023-09-20T15:35:38.146Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["nahsra antisamy"],"affectedProducts":[{"vendor":"nahsra","product":"antisamy","defaultStatus":null,"versions":[{"version":"<= 1.7.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.owasp.antisamy:antisamy","purl":"pkg:maven/org.owasp.antisamy/antisamy","ranges":["<1.7.4"],"fixed":["1.7.4"],"advisory":"GHSA-pcf2-gh6g-h5r2"}],"cwes":["CWE-79"],"aliases":["GHSA-pcf2-gh6g-h5r2"],"references":[{"url":"https://github.com/nahsra/antisamy/security/advisories/GHSA-pcf2-gh6g-h5r2","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Mitigation","Product","Vendor Advisory","advisory","web"]},{"url":"https://github.com/nahsra/antisamy/releases/tag/v1.7.4","tags":["x_refsource_MISC","x_transferred","Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43643.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43643","tags":["advisory"]},{"url":"https://github.com/nahsra/antisamy","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00541,"epssPercentile":0.46191,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-43643","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43643","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-43643","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-pcf2-gh6g-h5r2","ok":true,"note":"GHSA-pcf2-gh6g-h5r2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-43643","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}