CVE catalog

CVE-2024-28244

node-katex: CVE-2024-28244

[CVE catalog]

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.

DistributionPackageReleaseVersionStatus
Debiannode-katexsid0.16.10+~cs6.1.0-10fixed
Debiannode-katexforky0.16.10+~cs6.1.0-10fixed
Debiannode-katextrixie0.16.10+~cs6.1.0-2fixed
Debiannode-katexbookworm0.16.4+~cs6.1.0-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-katexsourcesid0.16.10+~cs6.1.0-1not yet assignedNot reported[1067805]
Debiannode-katexsourceforky0.16.10+~cs6.1.0-1not yet assignedNot reported[1067805]
Debiannode-katexsourcetrixie0.16.10+~cs6.1.0-1not yet assignedNot reported[1067805]
Debiannode-katexsourcebookworm(unfixed)not yet assignedNot reported[1067805]

[Debian bug #1067805]

Notes

[bookworm] node-katex: Minor issue

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References