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. Learn more

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 Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SANITIZEHTML-585892
  • published7 Sept 2020
  • disclosed7 Sept 2020
  • creditmikesamuel

Introduced: 7 Sep 2020

CVE NOT AVAILABLE CWE-94  (opens 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