CVE-2024-28243 Affecting node-katex package, versions <0.13.11+~cs6.0.0-2ubuntu0.1~esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.19% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-NODEKATEX-6500788
  • published19 Jun 2025
  • disclosed25 Mar 2024

Introduced: 25 Mar 2024

CVE-2024-28243  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.04 node-katex to version 0.13.11+cs6.0.0-2ubuntu0.1esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-katex package and not the node-katex package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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.