CVE-2024-23635 json
AntiSamy malicious input can provoke XSS when preserving comments
published 2024-02-02 2 y ago modified 2026-09-10 1 mo ago also GHSA-2mrq-w8pv-5pvq , EUVD-2024-0472
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 30%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.owasp.antisamy:antisamy 1.7.5
- antisamy_project antisamy 1.7.5
- libowasp-antisamy-java Debian 14 1.7.8-1
debian advisories DEBIAN-CVE-2024-23635
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.37% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.owasp.antisamy:antisamy | <1.7.5 |
1.7.5 |
Affected products
- nahsra antisamy
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/nahsra/antisamy/commit/12a2e31d3855430c119480655c2bbbbb79a66ecd
web
-
github.com
/nahsra/antisamy/commit/3e84410ed06ab67f0a4cc3183c67528210f4847d
web
-
github.com
/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq
web, mitigation, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-23635
advisory
-
github.com
/nahsra/antisamy
package
Sources
- CVE List CVE-2024-23635
- GitHub Advisory GHSA-2mrq-w8pv-5pvq
- NVD CVE-2024-23635
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.