CVE-2024-21501

MEDIUM EPSS 59.0%
Published Feb 24, 20242y ago · Modified Jun 17, 20262w ago
5.3 CVSS 3.1
Medium
Find Similar
Published Feb 24, 2024 2y ago
Last Modified Jun 17, 2026 2w ago

Description

Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.

CVSS Details

Base Score
5.3
Exploitability
3.9
Impact
1.4
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality Low
Integrity None
Availability None

Threat Intelligence

EPSS Exploit Probability
59.0% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 2

CWE-200 Exposure of Sensitive Information to an Unauthorized Actor Information Exposure
CWE-538

Affected Products 3

VendorProductVersionRange
apostrophecmssanitize-html* <2.12.1
fedoraprojectfedora39any
fedoraprojectfedora40any

References 8

  • gist.github.com https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf
    ExploitThird Party Advisory
  • github.com https://github.com/apostrophecms/apostrophe/discussions/4436
    Issue Tracking
  • github.com https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4
    Patch
  • github.com https://github.com/apostrophecms/sanitize-html/pull/650
    Patch
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7/
    Mailing List
  • lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S/
    Mailing List
  • security.snyk.io https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557
    ExploitThird Party Advisory
  • security.snyk.io https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334
    ExploitThird Party Advisory

Remediation

  • github.com https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4
    Patch
  • github.com https://github.com/apostrophecms/sanitize-html/pull/650
    Patch