Skip to content
OpenAdvisories
Medium · 6.1 CVE-2023-43643 EUVD-2023-2788GHSA-pcf2-gh6g-h5r2

mXSS in AntiSamy

Published Oct 9, 2023 · Updated Sep 19, 2024 · Assigned by GitHub_M

Description

AntiSamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources. Prior to version 1.7.4, 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 and also allow for certain tags at the same time. As a result, certain crafty inputs can result in elements in comment tags being interpreted as executable when using AntiSamy's sanitized output. This issue has been patched in AntiSamy 1.7.4 and later.

Affected products

VendorProductAffectedFixed
nahsra antisamy <= 1.7.3 —

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.4-1 —
Debian 13 libowasp-antisamy-java 1.7.4-1 —
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.4 1.7.4 GHSA-pcf2-gh6g-h5r2

Advisories 3

References