What’s Vulnerable › Vulnerabilities
CVE-2024-28245: KaTeX's \includegraphics does not escape filename
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-25 · updated 2026-06-17
- Weakness: CWE-116
Description
KaTeX is a JavaScript library for TeX math rendering on the web. 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.
Affected products
- KaTeX: from 0.11.0 before 0.16.10 — fixed in 0.16.10
How to fix
Upgrade to a fixed version: KaTeX 0.16.10. Check the vendor advisory for mitigations.
References
- https://github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770
- https://github.com/KaTeX/KaTeX/security/advisories/GHSA-f98w-7cxr-ff2h
- https://github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770
- https://github.com/KaTeX/KaTeX/security/advisories/GHSA-f98w-7cxr-ff2h
Get alerted when CVE-2024-28245 or the next vulnerability affects your stack