
CVE catalog
CVE-2021-26540
node-sanitize-html affected and fixed versions
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 · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.75% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie | node-sanitize-html | Not reported | Not affectedDistribution reports not affected | [CVE-2021-26540] |
| Debiantrixie | node-sanitize-html | 2.14.0+~2.13.0-1 | Not affected | [CVE-2021-26540] |
| Debiansid | node-sanitize-html | Not reported | Not affectedDistribution reports not affected | [CVE-2021-26540] |
| Debiansid | node-sanitize-html | 2.17.0+~2.16.1-1 | Not affected | [CVE-2021-26540] |
| Debianforky | node-sanitize-html | Not reported | Not affectedDistribution reports not affected | [CVE-2021-26540] |
| Debianforky | node-sanitize-html | 2.17.0+~2.16.1-1 | Not affected | [CVE-2021-26540] |
| Debianbookworm | node-sanitize-html | Not reported | Not affectedDistribution reports not affected | [CVE-2021-26540] |
| Debianbookworm | node-sanitize-html | 2.8.0+~2.6.2-1 | Not affected | [CVE-2021-26540] |
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm | node-sanitize-html | Not reported | Not affectedDistribution reports not affected | [CVE-2021-26540] |
| Debianbookworm | node-sanitize-html | 2.8.0+~2.6.2-1 | Not affected | [CVE-2021-26540] |
| Debianforky | node-sanitize-html | Not reported | Not affectedDistribution reports not affected | [CVE-2021-26540] |
| Debianforky | node-sanitize-html | 2.17.0+~2.16.1-1 | Not affected | [CVE-2021-26540] |
| Debiansid | node-sanitize-html | Not reported | Not affectedDistribution reports not affected | [CVE-2021-26540] |
| Debiansid | node-sanitize-html | 2.17.0+~2.16.1-1 | Not affected | [CVE-2021-26540] |
| Debiantrixie | node-sanitize-html | Not reported | Not affectedDistribution reports not affected | [CVE-2021-26540] |
| Debiantrixie | node-sanitize-html | 2.14.0+~2.13.0-1 | Not affected | [CVE-2021-26540] |
Original provider fields
{
"package_releases": [
{
"name": "node-sanitize-html",
"status": "not affected",
"release": "sid",
"version": "2.17.0+~2.16.1-1"
},
{
"name": "node-sanitize-html",
"status": "not affected",
"release": "forky",
"version": "2.17.0+~2.16.1-1"
},
{
"name": "node-sanitize-html",
"status": "not affected",
"release": "trixie",
"version": "2.14.0+~2.13.0-1"
},
{
"name": "node-sanitize-html",
"status": "not affected",
"release": "bookworm",
"version": "2.8.0+~2.6.2-1"
}
],
"fixed_versions": [
{
"bug": null,
"name": "node-sanitize-html",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "unimportant",
"fixed_version": "0"
},
{
"bug": null,
"name": "node-sanitize-html",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "unimportant",
"fixed_version": "0"
},
{
"bug": null,
"name": "node-sanitize-html",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "unimportant",
"fixed_version": "0"
},
{
"bug": null,
"name": "node-sanitize-html",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "unimportant",
"fixed_version": "0"
}
],
"distribution_packages": []
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [node-sanitize-html]Unknown
Details (2)
2.8.0+~2.6.2-1· all · bookwormNot affected
dsa · node-sanitize-html · debian · bookworm
2.8.0+~2.6.2-1· all · bookwormNot affected
dsa · node-sanitize-html · debian · bookworm
Observed: