# CVE-2023-43643: mXSS in AntiSamy

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-10-09T00:42:27.000Z
- Modified: 2026-09-10T03:50:04.035Z
- Also known as: GHSA-pcf2-gh6g-h5r2
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- nahsra antisamy: <= 1.7.3
- org.owasp.antisamy:antisamy (Maven): before 1.7.4
- antisamy_project antisamy: before 1.7.4

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/nahsra/antisamy/security/advisories/GHSA-pcf2-gh6g-h5r2> (exploit, mitigation, product, vendor-advisory, web)
- <https://github.com/nahsra/antisamy/releases/tag/v1.7.4> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-43643> (advisory)
- <https://github.com/nahsra/antisamy> (package)

## Sources

- CVE List: [CVE-2023-43643](https://www.cve.org/CVERecord?id=CVE-2023-43643), CVE Terms of Use, modified 2024-09-19
- GitHub Advisory Database: [GHSA-pcf2-gh6g-h5r2](https://github.com/advisories/GHSA-pcf2-gh6g-h5r2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-43643](https://nvd.nist.gov/vuln/detail/CVE-2023-43643), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-43643 · Whole record: https://cve.day/CVE-2023-43643.json · Rebuilt by cve.day 2026-11-25T22:58:28.537Z
