PT-2024-22360 · Katex+3 · Katex+3

·

CVE-2024-28245

·

Published

2024-03-25

·

Updated

2025-09-02

CVSS v3.1

6.3

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Name of the Vulnerable Software and Affected Versions KaTeX versions prior to 0.16.10
Description KaTeX is a JavaScript library for TeX math rendering on the web. Users who render untrusted mathematical expressions could encounter malicious input using includegraphics that runs arbitrary JavaScript, or generate invalid HTML. The includegraphics command did not properly quote its filename argument, allowing it to generate invalid or malicious HTML that runs scripts.
Recommendations Upgrade to KaTeX v0.16.10 to remove this vulnerability. As a temporary workaround, consider avoiding the use of or turning off the trust option, or set it to forbid includegraphics commands. Forbid inputs containing the substring "includegraphics". Sanitize HTML output from KaTeX.

Exploit

Fix

DoS

Improper Encoding or Escaping of Output

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-28245
GHSA-F98W-7CXR-FF2H
USN-7572-1

Affected Products

Debian
Katex
Linuxmint
Ubuntu