KaTeX's \includegraphics does not escape filename
Priority LOW 30CWE-116Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00406 35th percentileScored 2026-11-07
Fix Fixed KaTeX (KaTeX): 0.6.10katex (npm): 0.16.10
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| KaTeX | KaTeX | 0.11.0 to before 0.6.10 | 0.6.10 | Patch available | CNA |
| — | katex (npm) | 0.11.0 to before 0.16.10 | 0.16.10 | Patch available | GHSA-f98w-7cxr-ff2h |
- KaTeX VendorKaTeX Affected 0.11.0 to before 0.6.10 Fixed in 0.6.10 Patch available CNA
- katex (npm) Vendor— Affected 0.11.0 to before 0.16.10 Fixed in 0.16.10 Patch available GHSA-f98w-7cxr-ff2h
Remediation
- Fix · CNA KaTeX (KaTeX) Fixed in 0.6.10
- Fix · GHSA-f98w-7cxr-ff2h katex (npm) Fixed in 0.16.10 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-28245
- 2026-10-03 Alias added: GHSA-f98w-7cxr-ff2h
References
More Katex vulnerabilities
- TI-2024-18803 KaTeX's maxExpand bypassed by Unicode sub/superscripts CVSS 3.1MEDIUM 6.5
- TI-2025-16992 \htmlData does not validate attribute names in KaTeX CVSS 3.1HIGH 7.2
- TI-2024-18802 KaTeX's maxExpand bypassed by \edef CVSS 3.1MEDIUM 6.5
- TI-2024-18805 KaTeX is missing normalization of the protocol in URLs allows bypassing forbidden protocols CVSS 3.1MEDIUM 5.5
Sources
- CVE-2024-28245 · CVE Program
- CVE-2024-28245 · NVD
- FIRST EPSS
- GHSA-f98w-7cxr-ff2h · GitHub Advisory Database · CC BY 4.0
- CVE-2024-28245 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences