logo

CVE-2021-26540 sanitize-html

Package

Manager: npm
Name: sanitize-html
Vulnerable Version: >=0 <2.3.2

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00288 pctl0.51875

Details

Improper Input Validation in sanitize-html Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when the "allowIframeRelativeUrls" is set to true, which allows attackers to bypass hostname whitelist for iframe element, related using an src value that starts with "/\\example.com".

Metadata

Created: 2021-05-06T16:10:19Z
Modified: 2021-03-29T23:13:11Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-mjxr-4v3x-q3m4/GHSA-mjxr-4v3x-q3m4.json
CWE IDs: ["CWE-20"]
Alternative ID: GHSA-mjxr-4v3x-q3m4
Finding: F060
Auto approve: 1