Cross-site scripting in HtmlSanitizer - CVE-2023-44390

 

Cross-site scripting in HtmlSanitizer - CVE-2023-44390

Published: October 4, 2023 / Updated: November 6, 2026


Vulnerability identifier: #VU159567
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: CVE-2023-44390
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unauthenticated remote attacker to bypass HTML sanitization and execute arbitrary JavaScript in a victim's browser.

The vulnerability exists due to incomplete sanitization of foreign content in HtmlSanitizer when a non-default configuration allows svg or math together with comments or a raw text element. An unauthenticated remote attacker can submit crafted HTML that survives sanitization and executes when a victim views the resulting content.


Affected software

HtmlSanitizer

How to mitigate CVE-2023-44390

Install security update from vendor's website.

HtmlSanitizer - update to 8.0.723

External References

Related Security Bulletins