CVE-2023-44390 - CVE House
Back to Database
Status published Medium CVE-2023-44390

HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content

Vulnerability Description

HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. The vulnerability occurs in configurations where foreign content is allowed, i.e. either `svg` or `math` are in the list of allowed elements. In the case an application sanitizes user input with a vulnerable configuration, an attacker could bypass the sanitization and inject arbitrary HTML, including JavaScript code. Note that in the default configuration the vulnerability is not present. The vulnerability has been fixed in versions 8.0.723 and 8.1.722-beta (preview version).

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2023-44390

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

HtmlSanitizer
Vulnerable Versions:
< 8.0.723, >= 8.1.0-beta, < 8.1.722-beta

Timeline

Official Publish: October 5th, 2023
Last Modified: September 19th, 2024
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weaknesses (CWE)