Skip to content
OpenAdvisories
Medium · 6.1 CVE-2024-23635 EUVD-2024-0472GHSA-2mrq-w8pv-5pvq

AntiSamy malicious input can provoke XSS when preserving comments

Published Feb 2, 2024 · Updated Aug 1, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
nahsra antisamy < 1.7.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libowasp-antisamy-java 1.7.8-1 —
Debian 13 libowasp-antisamy-java No fix yet —
Debian 12 libowasp-antisamy-java No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libowasp-antisamy-java No fix yet —
Ubuntu 26.04 LTS libowasp-antisamy-java No fix yet —
Ubuntu 25.10 libowasp-antisamy-java No fix yet —
Ubuntu 24.04 LTS libowasp-antisamy-java No fix yet —
Ubuntu 22.04 LTS libowasp-antisamy-java No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libowasp-antisamy-java No fix yet —
Ubuntu 18.04 LTS libowasp-antisamy-java No fix yet —
Ubuntu 16.04 LTS libowasp-antisamy-java No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.owasp.antisamy:antisamy < 1.7.5 1.7.5 GHSA-2mrq-w8pv-5pvq

Advisories 7

References