Medium severity6.1NVD Advisory· Published Feb 2, 2024· Updated Jun 17, 2026
CVE-2024-23635
CVE-2024-23635
Description
AntiSamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources. Prior to 1.7.5, 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. As a result, certain crafty inputs can result in elements in comment tags being interpreted as executable when using AntiSamy's sanitized output. Patched in AntiSamy 1.7.5 and later.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.owasp.antisamy:antisamyMaven | < 1.7.5 | 1.7.5 |
Affected products
3- nahsra/antisamyv5Range: < 1.7.5
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-2mrq-w8pv-5pvqghsaADVISORY
- github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvqnvdMitigationThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2024-23635ghsaADVISORY
- github.com/nahsra/antisamy/commit/12a2e31d3855430c119480655c2bbbbb79a66ecdghsaWEB
- github.com/nahsra/antisamy/commit/3e84410ed06ab67f0a4cc3183c67528210f4847dghsaWEB
News mentions
0No linked articles in our index yet.