Description
KaTeX users who render untrusted mathematical expressions could encounter malicious input using \includegraphics that runs arbitrary JavaScript, or generate invalid HTML.
Recommendation
Update the katex package to the latest compatible version. Followings are version details:
- Affected version(s): >= 0.11.0, < 0.16.10
- Patched version(s): 0.16.10
References
Could your website be exposed too?
SmartScanner can check your website for KaTeX's `\includegraphics` does not escape filename and gives you actionable findings to investigate.
Start a free scanRelated Issues
- KaTeX \htmlData does not validate attribute names - CVE-2025-23207
- Svelte SSR does not validate dynamic element tag names in `<svelte:element>` - CVE-2026-27122
- expr-eval does not restrict functions passed to the evaluate function - expr-eval - CVE-2025-12735
- @udecode/plate-link does not sanitize URLs to prevent use of the `javascript:` scheme - CVE-2023-34245
You might also like:
See something that needs correcting? Let us knowUpdated March 25, 2024


