CVE-2023-43643: antisamy_project antisamy Cross-site Scripting
Vulnerability summary
CVE-2023-43643 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in antisamy_project antisamy. EPSS estimates a 0.54% chance of exploitation in the next 30 days, higher than 44.3% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 09-10-2023PublishedVulnerability first disclosed.
- 19-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · MavenEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.54%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
+0.07 pp
From 0.47% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundAntisamy
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Antisamy_project1 product
- antisamy< 1.7.4
Debian1 product
- libowasp-antisamy-javaAll versions (No fix recorded) | < 1.7.4-1
Nahsra1 product
- antisamy≤ 1.7.3
Org.owasp.antisamy1 product
- antisamy< 1.7.4
Ubuntu1 product
- libowasp-antisamy-javaAll versions (No fix recorded)
5 vendors · 5 products
References
8 links- github.com/nahsra/antisamy/security/advisories/GHSA-pcf2-gh6g-h5r2X Refsource CONFIRMREPORTWEBExploitMitigationProductVendor Advisory
- github.com/nahsra/antisamyPACKAGE