CWE
200 538
Advisory Published
Advisory Published
Updated

CVE-2024-21501: Infoleak

First published: Sat Feb 24 2024(Updated: )

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.

Credit: report@snyk.io report@snyk.io

Affected SoftwareAffected VersionHow to fix
npm/sanitize-html<2.12.1
2.12.1
Punkave Sanitize-html<2.12.1
Red Hat Fedora=39
Red Hat Fedora=40

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2024-21501?

    CVE-2024-21501 has a medium severity level due to its potential for information exposure.

  • How do I fix CVE-2024-21501?

    To fix CVE-2024-21501, update the sanitize-html package to version 2.12.1 or later.

  • Who is affected by CVE-2024-21501?

    CVE-2024-21501 affects versions of the sanitize-html package prior to 2.12.1 used in backend applications.

  • What kind of attack can exploit CVE-2024-21501?

    An attacker can exploit CVE-2024-21501 to enumerate files in the system, including project dependencies.

  • Should I be concerned about using sanitize-html with allowed style attributes?

    Yes, using sanitize-html with allowed style attributes can increase the risk of CVE-2024-21501 being exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203