Loading advisory.
Loading advisory.
XSS in HtmlSanitizer
If you have explicitly allowed the <style> tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the <style> tag so there is no risk if you have not explicitly allowed the <style> tag.
Published 2021-01-04 18:20 UTC · Modified 2026-09-10 03:49 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| HtmlSanitizer | NuGet | < 5.0.372 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 53 more | 5.0.372 | dotnet add package HtmlSanitizer --version 5.0.372 |
If you have explicitly allowed the <style> tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the <style> tag so there is no risk if you have not explicitly allowed the <style> tag.
The problem has been fixed in version 5.0.372.
Remove the <style> tag from the set of allowed tags.
If you have any questions or comments about this advisory open an issue in https://github.com/mganss/HtmlSanitizer
This issue was discovered by Michal Bentkowski of Securitum.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.010 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.010 | first score | v2026.06.15 |