SCA: security update for sanitize-html (GHSA-mjxr-4v3x-q3m4)

medium Tenable Cloud Security Plugin ID 417019

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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". (CVE-2021-26540)

See Also

https://github.com/advisories/GHSA-mjxr-4v3x-q3m4

Plugin Details

Severity: Medium

ID: 417019

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2021-26540

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/6/2021

Vulnerability Publication Date: 2/8/2021

Reference Information

CVE: CVE-2021-26540

cwe: CWE-20