REDHAT-BUG-2266111: Medium severity npm/sanitize-html vulnerability

Published Feb 26, 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.

https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf https://github.com/apostrophecms/apostrophe/discussions/4436 https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4 https://github.com/apostrophecms/sanitize-html/pull/650 https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334

Affected Software

1 affected component
npm/sanitize-html<2.12.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade sanitize-html to a version that resolves this vulnerability.

    Fixed in 2.12.1
  2. Configuration

    If using sanitize-html on the backend, do not allow the style attribute until you upgrade; versions of sanitize-html before 2.12.1 are vulnerable when used on the backend and with the style attribute allowed.

    sanitize-html style attribute allowed = disallow style attribute on backend usage

Event History

Feb 26, 2024
Data Sourced
via Red Hat·06:11 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2266111?

The severity of REDHAT-BUG-2266111 is classified as critical due to the potential for information exposure.

2

How do I fix REDHAT-BUG-2266111?

To fix REDHAT-BUG-2266111, update the sanitize-html package to version 2.12.1 or later.

3

What causes the vulnerability in REDHAT-BUG-2266111?

The vulnerability in REDHAT-BUG-2266111 is caused by allowing the style attribute on the backend, which can lead to information exposure.

4

Which applications are affected by REDHAT-BUG-2266111?

Applications using sanitize-html versions prior to 2.12.1 are affected by REDHAT-BUG-2266111.

5

What can an attacker do with exploit REDHAT-BUG-2266111?

An attacker exploiting REDHAT-BUG-2266111 could enumerate files in the system, including project dependencies.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203