CVE-2024-23635
MEDIUM6.1EPSS 0.21%Malicious input can provoke XSS when preserving comments
Published: 2/2/2024Modified: 4/28/2026
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.
Affected packages (2)
- Debian/libowasp-antisamy-javafrom 0
- Maven/org.owasp.antisamy:antisamyfrom 0, < 1.7.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-23635
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-23635
- PATCHhttps://github.com/nahsra/antisamy
- WEBhttps://github.com/nahsra/antisamy/commit/12a2e31d3855430c119480655c2bbbbb79a66ecd
- WEBhttps://github.com/nahsra/antisamy/commit/3e84410ed06ab67f0a4cc3183c67528210f4847d
- WEBhttps://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq