CVE-2024-28244

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-28244
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-28244.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-28244
Aliases
Downstream
Published
2024-03-25T19:45:50Z
Modified
2025-10-20T20:22:00.187439Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
KaTeX's maxExpand bypassed by Unicode sub/superscripts
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-674"
    ]
}
References

Affected packages

Git / github.com/katex/katex

Affected ranges

Type
GIT
Repo
https://github.com/katex/katex
Events

Affected versions

v0.*

v0.15.4
v0.15.5
v0.15.6
v0.16.0
v0.16.1
v0.16.2
v0.16.3
v0.16.4
v0.16.5
v0.16.6
v0.16.7
v0.16.8
v0.16.9