Live threats

All CVEs / Katex

CVE-2024-28243Katex

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
1.8%
probability of exploitation in 30 days · percentile 79
Auth required
Yes
Published
Mar 25, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-674
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\edef` that causes a near-infinite loop, despite setting `maxExpand` to avoid such loops. This can be used as an availability attack, where e.g. a client rendering another user's KaTeX input will be unable to use the site due to memory overflow, tying up the main thread, or stack overflow. Upgrade to KaTeX v0.16.10 to remove this vulnerability.

Original NVD text.

What to do

  1. Apply the vendor's security update for Katex.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm katex ≥ 0.12.0 < 0.16.10 0.16.10 npm install katex@0.16.10

Per OSV / GitHub Advisories (GHSA-64fm-8hw2-v72w). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
katexkatex≥ 0.1.0 < 0.16.10

Official sources

References

Links published by the sources. Open them with care.