Vulnerability · Published Oct 9, 2023 · Assigned by GitHub_M
CVE-2023-43643mXSS in AntiSamy
Medium 6.1
In plain English
A medium-severity cross-site scripting in antisamy from nahsra. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libowasp-antisamy-java | no fix listed | DEBIAN-CVE-2023-43643 |
| Debian:13 | libowasp-antisamy-java | 1.7.4-1 | DEBIAN-CVE-2023-43643 |
| Debian:14 | libowasp-antisamy-java | 1.7.4-1 | DEBIAN-CVE-2023-43643 |
| Maven | org.owasp.antisamy:antisamy | 1.7.4 | GHSA-pcf2-gh6g-h5r2 |
| Ubuntu:22.04:LTS | libowasp-antisamy-java | no fix listed | UBUNTU-CVE-2023-43643 |
| Ubuntu:24.04:LTS | libowasp-antisamy-java | no fix listed | UBUNTU-CVE-2023-43643 |
| Ubuntu:25.10 | libowasp-antisamy-java | no fix listed | UBUNTU-CVE-2023-43643 |
| Ubuntu:26.04:LTS | libowasp-antisamy-java | no fix listed | UBUNTU-CVE-2023-43643 |
| Ubuntu:26.10 | libowasp-antisamy-java | no fix listed | UBUNTU-CVE-2023-43643 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/nahsra/antisamy/security/advisories/GHSA-pcf2-gh6g-h5r2 x_refsource_CONFIRM
- https://github.com/nahsra/antisamy/releases/tag/v1.7.4 x_refsource_MISC