Loading advisory.
Loading advisory.
KaTeX's `\includegraphics` does not escape filename
KaTeX users who render untrusted mathematical expressions could encounter malicious input using \includegraphics that runs arbitrary JavaScript, or generate invalid HTML.
Published 2024-03-25 19:38 UTC · Modified 2026-09-10 03:50 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.11.0, < 0.16.10 | 0.16.10 | npm install katex@0.16.10 |
KaTeX users who render untrusted mathematical expressions could encounter malicious input using \includegraphics that runs arbitrary JavaScript, or generate invalid HTML.
Upgrade to KaTeX v0.16.10 to remove this vulnerability.
Avoid use of or turn off the trust option, or set it to forbid \includegraphics commands.
Forbid inputs containing the substring "\\includegraphics".
Sanitize HTML output from KaTeX.
\includegraphics did not properly quote its filename 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.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 |