Vulnerabilities/

KaTeX's maxExpand bypassed by Unicode sub/superscripts

Severity:
Medium

Description

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. This can be used as an availability attack, where e.g.

Recommendation

Update the katex package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
katex
Anything's wrong? Let us know Last updated on March 25, 2024

This issue is available in SmartScanner Professional

See Pricing