GHSA-rjqq-98f6-6j3r

Suggest an improvement
Source
https://github.com/advisories/GHSA-rjqq-98f6-6j3r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-rjqq-98f6-6j3r/GHSA-rjqq-98f6-6j3r.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-rjqq-98f6-6j3r
Aliases
Published
2021-05-06T16:10:05Z
Modified
2026-03-11T07:48:02Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Improper Input Validation in sanitize-html
Details

Apostrophe Technologies sanitize-html before 2.3.1 does not properly handle internationalized domain name (IDN) which could allow an attacker to bypass hostname whitelist validation set by the "allowedIframeHostnames" option.

Database specific
{
    "cwe_ids": [
        "CWE-20"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-03-29T23:13:26Z",
    "nvd_published_at": "2021-02-08T17:15:00Z",
    "severity": "MODERATE"
}
References

Affected packages

npm / sanitize-html

Package

Name
sanitize-html
View open source insights on deps.dev
Purl
pkg:npm/sanitize-html

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.3.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-rjqq-98f6-6j3r/GHSA-rjqq-98f6-6j3r.json"