CVE-2024-28245
KaTeX's \includegraphics does not escape filename
Reported by github_m · Published March 25, 2024
katex is fixed in 0.16.10 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| katex | npm | 0.16.10 |
| katex | katex | 0.16.10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| KaTeX | KaTeX | >= 0.11.0, < 0.6.10 |
| KaTeX | KaTeX | 0.11.0 |
| npm | katex | 0.11.0 |
| katex | katex | 0.11.0 |
Timeline
- Mar 25, 2024 CVE Published
- Mar 26, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
- Sep 2, 2025 CVE Updated
- Jan 14, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-28245
vulnetix vdb fixes CVE-2024-28245
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-28245/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/KaTeX/KaTeX/security/advisories/GHSA-f98w-7cxr-ff2h x_refsource_CONFIRM
- https://github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-28245 advisory
- https://github.com/advisories/GHSA-f98w-7cxr-ff2h advisory
- https://github.com/KaTeX/KaTeX url