PT-2026-118499 · Npm · Sanitize-Html

CVE-2026-113654

·

Published

2026-10-20

·

Updated

2026-10-20

CVSS v4.0

5.3

Medium

VectorAV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions sanitize-html versions prior to 2.18.0
Description A flaw exists when a non-default nonTextTags configuration includes noscript. The sanitizer fails to correctly handle implied ancestor close events emitted by htmlparser2 inside a noscript element, causing the discard region to end prematurely. Consequently, content that should remain inert is treated as ordinary body content and rendered. This occurs because scripting-enabled browsers treat noscript content as raw text, while the parser does not model this mode, leading to a discrepancy where the sanitizer emits elements that the browser would not have rendered.
Recommendations Update sanitize-html to version 2.18.0.

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-113654
GHSA-X3Q4-9HXX-GX8M

Affected Products

Sanitize-Html