CVE-2024-23635AntiSamy malicious input can provoke XSS when preserving comments
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.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libowasp-antisamy-java | Fix pending | UBUNTU-CVE-2024-23635 | |
| Ubuntu 26.04 | libowasp-antisamy-java | Under investigation | UBUNTU-CVE-2024-23635 | |
| Ubuntu 25.10 | libowasp-antisamy-java | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-23635 | |
| Ubuntu 24.04 | libowasp-antisamy-java | Under investigation | UBUNTU-CVE-2024-23635 | |
| Ubuntu 22.04 | libowasp-antisamy-java | Under investigation | UBUNTU-CVE-2024-23635 | |
| Ubuntu 20.04 | libowasp-antisamy-java | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-23635 | |
| Ubuntu 18.04 | libowasp-antisamy-java | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-23635 | |
| Ubuntu 16.04 | libowasp-antisamy-java | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-23635 | |
| Debian 14 | libowasp-antisamy-java | Fixed | 1.7.8-1 | DEBIAN-CVE-2024-23635 |
| Debian 13 | libowasp-antisamy-java | Fix pending | DEBIAN-CVE-2024-23635 | |
| Debian 12 | libowasp-antisamy-java | Fix pending | DEBIAN-CVE-2024-23635 | |
| Maven library | org.owasp.antisamy:antisamy | Fixed | 1.7.5 | GHSA-2mrq-w8pv-5pvq |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- nahsra antisamy: affected: < 1.7.5
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.