Stack Overflow Vulnerability in RaTeX Math Rendering Engine by erweixin
CVE-2026-53531
6.9MEDIUM
What is CVE-2026-53531?
The RaTeX math rendering engine, which is compatible with KaTeX, contains a critical stack overflow vulnerability in its recursive-descent parser. This issue allows for a denial of service when processing LaTeX strings that are nested excessively. Specifically, prior to version 0.1.11, the parser lacks a maximum depth limit, leading to a stack overflow and the application aborting when handling inputs of around 10 KB. This flaw poses a risk when parsing untrusted input, as it can cause the entire RaTeX process to terminate unexpectedly. Users are advised to upgrade to version 0.1.11 or later to mitigate this risk.
Affected Version(s)
RaTeX < 0.1.11
