CVE-2023-44390CWE-79

HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content

Medium · published October 5, 2023

CVSS v3.1
6.1
EPSS
0%
Percentile
34.8
In the wild
Unconfirmed
What it is

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).

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00416 · 34.8th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2023-10-05T13:41Z
EPSS history
Timeline
  • 05 OCT 13:41Z
    HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content
    cvelistv5