Vulnerability record · CVE-2023-43643 · published 9 October 2023
CVE-2023-43643: Antisamy project antisamy cross-site scripting vulnerability
Antisamy Project · Antisamy
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.
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:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/nahsra/antisamy/releases/tag/v1.7.4 | Patch |
| https://github.com/nahsra/antisamy/security/advisories/GHSA-pcf2-gh6g-h5r2 | ExploitMitigationProductVendor Advisory |
| https://github.com/nahsra/antisamy/releases/tag/v1.7.4 | Patch |
| https://github.com/nahsra/antisamy/security/advisories/GHSA-pcf2-gh6g-h5r2 | ExploitMitigationProductVendor Advisory |
Track CVE-2023-43643 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2023-43643), CISA KEV, FIRST EPSS (scores of 2026-11-19). This page is refreshed as NVD updates the record.