Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.owasp.antisamy/antisamy
  4. ›
  5. CVE-2024-23635

CVE-2024-23635: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

February 2, 2024

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.

References

  • github.com/advisories/GHSA-2mrq-w8pv-5pvq
  • github.com/nahsra/antisamy/commit/12a2e31d3855430c119480655c2bbbbb79a66ecd
  • github.com/nahsra/antisamy/commit/3e84410ed06ab67f0a4cc3183c67528210f4847d
  • github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvq
  • nvd.nist.gov/vuln/detail/CVE-2024-23635

Code Behaviors & Features

Detect and mitigate CVE-2024-23635 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.7.4

Fixed versions

  • 1.7.5

Solution

Upgrade to version 1.7.5 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

maven/org.owasp.antisamy/antisamy/CVE-2024-23635.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:12 +0000.