Arbitrary Code Execution Affecting sanitize-html package, versions <2.0.0-beta


0.0
critical

Snyk CVSS

    Attack Complexity Low
    Confidentiality High
    Integrity High

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-SANITIZEHTML-585892
  • published 7 Sep 2020
  • disclosed 7 Sep 2020
  • credit mikesamuel

Introduced: 7 Sep 2020

CVE NOT AVAILABLE CWE-94 Open this link in a new tab

How to fix?

Upgrade sanitize-html to version 2.0.0-beta or higher.

Overview

sanitize-html is a library that allows you to clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

Affected versions of this package are vulnerable to Arbitrary Code Execution. Tag transformations which turn an attribute value into a text node using transformTags could be vulnerable to code execution.

References