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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.owasp.antisamy:antisamy | < 1.7.4 | 1.7.4 | GHSA-pcf2-gh6g-h5r2 |
Advisories 3
- WID-SEC-2024-0123 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 7, 2026
- WID-SEC-2024-1319 Atlassian Confluence: Schwachstelle ermöglicht Cross-Site Scripting BSI CERT-Bund (WID) · Jun 6, 2024
- WID-SEC-2024-0634 IBM Maximo Asset Management: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 13, 2024