SecurityContext

CVE-2024-23635: AntiSamy - Stored XSS

  • Cve: CVE-2024-23635
  • Name: AntiSamy - Stored XSS
  • Description: 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.
  • Impact: Attackers can execute malicious scripts via crafted inputs, leading to potential theft of user data or session hijacking.
  • Remediation: Update to version 1.7.5 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec, information_disclosure
  • Requirement type: user_interaction
  • Requirements: Attacker needs to craft specific malicious input with 'preserveComments' enabled
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00368
  • Epss percentile: 0.31269
  • Assignee: [email protected]
  • Published at: 2024-02-02T17:15:11Z
  • Age in days: 1026
  • Modified at: 2026-06-17T07:13:16Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-23635
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://github.com/nahsra/antisamy/security/advisories/GHSA-2mrq-w8pv-5pvqnvdMitigation, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
antisamy_project:antisamy< 1.7.5nonvd/v1/products/antisamy_project/antisamy

Projects

RepositoryLink kindsIndexedUrl
nahsra/antisamycommit, package, security_advisoryyes/v1/repositories/nahsra/antisamy

Index

  • Repositories: 6
  • Repositories high signal: 6
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts