CVE-2023-43643 mXSS in AntiSamy
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2023-43643?
CVE-2023-43643 is a medium-severity vulnerability in nahsra antisamy, published on 9 Oct 2023.
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.
Weakness: CWE-79
Which versions are affected by CVE-2023-43643?
2 open source packages ship an affected version, including org.owasp.antisamy:antisamy. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.owasp.antisamy:antisamy Maven | All versions | 1.7.4 |
org.owasp.antisamy:antisamy Maven | All versions | 1.7.4 |
Products include Antisamy Project Antisamy.
How do I fix CVE-2023-43643?
Upgrade org.owasp.antisamy:antisamy to 1.7.4 or later.
Is CVE-2023-43643 being exploited?
There is no known exploitation of CVE-2023-43643 in the wild and no public exploit code.
Other vulnerabilities in nahsra antisamy
Sources
Also known as DEBIAN-CVE-2023-43643, GHSA-pcf2-gh6g-h5r2, UBUNTU-CVE-2023-43643.