Skip to main content
← All vulnerabilities
CVE-2024-28243GHSA-64FM-8HW2-V72W

KaTeX's maxExpand bypassed by \edef

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.16.10
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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 `\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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • KaTeX KaTeX

    From 0.12.0 · fixed in 0.16.10

  • katexnpm

    From 0.12.0 · fixed in 0.16.10

References 3

GitHub · KaTeX/KaTeX

GitHub · github/advisory-database