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


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

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

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
9.4 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    Low