Advisory

GHSA-mjxr-4v3x-q3m4

Also known as: CVE-2021-26540

Summary

Improper Input Validation in sanitize-html

Details

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".

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-06 16:10 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

sanitize-html

npm · All systems

Affected

  • introduced 0, fixed 2.3.2 (semver)

Fixed versions

2.3.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences