Cross-site scripting in HtmlSanitizer - #VU159569

 

Cross-site scripting in HtmlSanitizer - #VU159569

Published: November 6, 2026


Vulnerability identifier: #VU159569
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unauthenticated remote attacker to execute JavaScript in a victim's browser through cross-site scripting.

The vulnerability exists due to HtmlSanitizer's SanitizeDom(string) leaving input attributes merged onto document wrapper elements unsanitized when processing attacker-controlled HTML. An unauthenticated remote attacker can submit HTML containing event handlers that execute when a victim views an application response rendered from the returned document with its wrapper elements included.


Affected software

HtmlSanitizer

Remediation

Install security update from vendor's website.

HtmlSanitizer - update to 9.2.1039

External References

Related Security Bulletins