Loading advisory.
Loading advisory.
HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content
The vulnerability occurs in configurations where foreign content is allowed, i.e. either svg or math are in the list of allowed elements. Specifically, the requirements for the vulnerability are:
Published 2023-10-04 18:52 UTC · Modified 2026-09-10 03:49 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| HtmlSanitizer | NuGet | < 8.0.723 >= 8.1.0-beta, < 8.1.722-beta versions 1.0.4925.29815, 1.0.4927.30873, 1.1.5243.28448, 1.1.5297.28403, 1.1.5338.17998, 2.0.5449.20550, 2.0.5548.24932, 2.0.5595.22183, 2.0.5595.30325, 2.0.5623.30465, 2.0.5735.24296, 3.0.5781.31354-beta, 3.0.66-beta, 3.1.67-beta, 3.1.75-beta, 3.1.76, 3.1.79, 3.1.91, 3.1.93, 3.1.98 and 77 more | 8.0.723, 8.1.722-beta | dotnet add package HtmlSanitizer --version 8.0.723dotnet add package HtmlSanitizer --version 8.1.722-beta |
The vulnerability occurs in configurations where foreign content is allowed, i.e. either svg or math are in the list of allowed elements.
Specifically, the requirements for the vulnerability are:
Allowing one foreign element: svg, or math
Comments or one raw text element: iframe, noembed, xmp, title, noframes, style or noscript
Configurations that meet the above requirements plus the following are vulnerable to an additional vulnerability:
Any HTML integration element: title, desc, mi, mo, mn, ms, mtext, annotation-xml.
In 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).
Disallow foreign elements svg and math. This is the case in the default configuration, which is therefore not affected by the vulnerability.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.004 on 2026-11-24 to 0.005 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.005 | 0.004 | v2026.06.15 |