Loading advisory.
Loading advisory.
KaTeX \htmlData does not validate attribute names
KaTeX users who render untrusted mathematical expressions with renderToString could encounter malicious input using \htmlData that runs arbitrary JavaScript, or generate invalid HTML.
Published 2025-01-17 21:22 UTC · Modified 2025-01-21 18:31 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 |
|---|---|---|---|---|
| katex | npm | >= 0.12.0, < 0.16.21 | 0.16.21 | npm install katex@0.16.21 |
KaTeX users who render untrusted mathematical expressions with renderToString could encounter malicious input using \htmlData that runs arbitrary JavaScript, or generate invalid HTML.
Upgrade to KaTeX v0.16.21 to remove this vulnerability.
Avoid use of or turn off the trust option, or set it to forbid \htmlData commands.
Forbid inputs containing the substring "\\htmlData".
Sanitize HTML output from KaTeX.
\htmlData did not validate its attribute name argument, allowing it to generate invalid or malicious HTML that runs scripts.
If you have any questions or comments about this advisory:
Open an issue or security advisory in the KaTeX repository
Email us at katex-security@mit.edu
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.006 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.006 | 0.004 | v2026.06.15 |