mXSS via preserveComments in AntiSamy <1.7.5 (comment tag exploitation)
CVE-2024-23635 Published on February 2, 2024
AntiSamy malicious input can provoke XSS when preserving comments
AntiSamy is a library for performing fast, configurable cleansing of HTML coming from untrusted sources. Prior to 1.7.5, 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. As a result, certain crafty inputs can result in elements in comment tags being interpreted as executable when using AntiSamy's sanitized output. Patched in AntiSamy 1.7.5 and later.
Vulnerability Analysis
CVE-2024-23635 can be exploited with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality and integrity, and no impact on availability.
Weakness Type
What is a XSS Vulnerability?
The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CVE-2024-23635 has been classified to as a XSS vulnerability or weakness.
Products Associated with CVE-2024-23635
stack.watch emails you whenever new vulnerabilities are published in Antisamyproject Antisamy or Oracle. Just hit a watch button to start following.
Affected Versions
nahsra antisamy Version < 1.7.5 is affected by CVE-2024-23635Vulnerable Packages
The following package name and versions may be associated with CVE-2024-23635
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.owasp.antisamy:antisamy | <= 1.7.4 | 1.7.5 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.