Access Restriction Bypass Affecting sanitize-html Open this link in a new tab package, versions <2.3.1


0.0
medium
  • Attack Complexity

    Low

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-1070786

  • published

    9 Feb 2021

  • disclosed

    9 Feb 2021

  • credit

    Ron Masas, Checkmarx

How to fix?

Upgrade sanitize-html to version 2.3.1 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 Access Restriction Bypass. Internationalized domain name (IDN) is not properly handled. This allows attackers to bypass hostname whitelist validation set by the allowedIframeHostnames option.

References