CVE-2023-43643
MEDIUM 6.1CVSS 3.1mXSS in AntiSamy
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
- 9 Oct 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-pcf2-gh6g-h5r2
- Sources
- NVDJSONOSV GHSA-pcf2-gh6g-h5r2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | antisamy_project | antisamycpe:2.3:a:antisamy_project:antisamy:*:*:*:*:*:*:*:* |
< 1.7.4 | 1.7.4 |
| OSV | Maven | org.owasp.antisamy:antisamy | < 1.7.4 | 1.7.4 |
References
- https://github.com/nahsra/antisamy/releases/tag/v1.7.4 · Patch, WEB
- https://github.com/nahsra/antisamy/security/advisories/GHSA-pcf2-gh6g-h5r2 · Exploit, Mitigation, Product, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-43643 · ADVISORY
- https://github.com/nahsra/antisamy · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 9 Oct 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Oct 2023)