
CVE catalog
CVE-2024-28244
node-katex: CVE-2024-28244
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.15% · Oct 25, 2026
KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\def` or `\newcommand` that causes a near-infinite loop, despite setting `maxExpand` to avoid such loops. KaTeX supports an option named maxExpand which aims to prevent infinitely recursive macros from consuming all available memory and/or triggering a stack overflow error. Unfortunately, support for "Unicode (sub|super)script characters" allows an attacker to bypass this limit. Each sub/superscript group instantiated a separate Parser with its own limit on macro executions, without inheriting the current count of macro executions from its parent. This has been corrected in KaTeX v0.16.10.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-katex | sid | 0.16.10+~cs6.1.0-10 | fixed |
| Debian | node-katex | forky | 0.16.10+~cs6.1.0-10 | fixed |
| Debian | node-katex | trixie | 0.16.10+~cs6.1.0-2 | fixed |
| Debian | node-katex | bookworm | 0.16.4+~cs6.1.0-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-katex | source | sid | 0.16.10+~cs6.1.0-1 | not yet assigned | Not reported | [1067805] |
| Debian | node-katex | source | forky | 0.16.10+~cs6.1.0-1 | not yet assigned | Not reported | [1067805] |
| Debian | node-katex | source | trixie | 0.16.10+~cs6.1.0-1 | not yet assigned | Not reported | [1067805] |
| Debian | node-katex | source | bookworm | (unfixed) | not yet assigned | Not reported | [1067805] |
Notes
[bookworm] node-katex: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.