CVE-2024-23635: AntiSamy malicious input can provoke XSS when preserving comments
Vulnerability summary
CVE-2024-23635 is a medium (CVSS 6.1) vulnerability in antisamy_project antisamy. EPSS estimates a 0.37% chance of exploitation in the next 30 days, higher than 32.6% of scored vulnerabilities.
Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 02-02-2024PublishedVulnerability first disclosed.
- 01-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · MavenEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.37%
Chance of exploitation in the next 30 days
Percentile
33%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.37% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Antisamy_project1 product
- antisamy< 1.7.5
Debian1 product
- libowasp-antisamy-javaAll versions (No fix recorded) | < 1.7.8-1
Nahsra1 product
- antisamy< 1.7.5
Org.owasp.antisamy1 product
- antisamy< 1.7.5
Ubuntu1 product
- libowasp-antisamy-javaAll versions (No fix recorded)
5 vendors · 5 products
References
8 links- github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvqX Refsource CONFIRMREPORTWEBMitigationThird Party Advisory
- github.com/nahsra/antisamyPACKAGE