CVEfocus › CVE database › CVE-2024-23635

CVE-2024-23635AntiSamy malicious input can provoke XSS when preserving comments

CVSS 6.1 MediumEPSS 0.5% (higher than 35% of CVEs)Published 2024-02-02Updated 2024-08-01Assigner: GitHub_M

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.

CWE-79

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

2Fixed
3Fix pending
3Under investigation
4Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libowasp-antisamy-javaFix pendingUBUNTU-CVE-2024-23635
Ubuntu 26.04libowasp-antisamy-javaUnder investigationUBUNTU-CVE-2024-23635
Ubuntu 25.10libowasp-antisamy-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-23635
Ubuntu 24.04libowasp-antisamy-javaUnder investigationUBUNTU-CVE-2024-23635
Ubuntu 22.04libowasp-antisamy-javaUnder investigationUBUNTU-CVE-2024-23635
Ubuntu 20.04libowasp-antisamy-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-23635
Ubuntu 18.04libowasp-antisamy-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-23635
Ubuntu 16.04libowasp-antisamy-javaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-23635
Debian 14libowasp-antisamy-javaFixed1.7.8-1DEBIAN-CVE-2024-23635
Debian 13libowasp-antisamy-javaFix pendingDEBIAN-CVE-2024-23635
Debian 12libowasp-antisamy-javaFix pendingDEBIAN-CVE-2024-23635
Maven libraryorg.owasp.antisamy:antisamyFixed1.7.5GHSA-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.

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.