# CVE-2023-43643: mXSS in AntiSamy

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-10-09 · Modified: 2024-09-19
- Aliases: UBUNTU-CVE-2023-43643, DEBIAN-CVE-2023-43643, GHSA-pcf2-gh6g-h5r2
- Record: https://cvemate.com/vulnerability/CVE-2023-43643 · JSON: https://cvemate.com/vulnerability/CVE-2023-43643/json

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

## Signals

- CVSS: 6.1 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.541%, percentile 46.972%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- antisamy\_project antisamy: \< 1.7.4
- debian libowasp-antisamy-java (Debian): All versions (No fix recorded) \| \< 1.7.4-1
- ubuntu libowasp-antisamy-java (Ubuntu): All versions (No fix recorded)
- org.owasp.antisamy antisamy (Maven): \< 1.7.4
- nahsra antisamy: ≤ 1.7.3

## References

- <https://github.com/nahsra/antisamy/security/advisories/GHSA-pcf2-gh6g-h5r2>
- <https://github.com/nahsra/antisamy/releases/tag/v1.7.4>
- <https://ubuntu.com/security/CVE-2023-43643>
- <https://github.com/nahsra/antisamy/commit/05c52b98bb845b8175b8406bd2f391ce334a05d6>
- <https://www.cve.org/CVERecord?id=CVE-2023-43643>
- <https://security-tracker.debian.org/tracker/CVE-2023-43643>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-43643>
- <https://github.com/nahsra/antisamy>

---

Data as of 2026-12-05T06:59:46.605Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
