CVE-2024-28245
MEDIUM6.3EPSS 0.05%KaTeX's `\includegraphics` does not escape filename
Published: 3/25/2024Modified: 4/28/2026
Description
KaTeX is a JavaScript library for TeX math rendering on the web. KaTeX users who render untrusted mathematical expressions could encounter malicious input using `\includegraphics` that runs arbitrary JavaScript, or generate invalid HTML. Upgrade to KaTeX v0.16.10 to remove this vulnerability.
Affected packages (2)
- Debian/node-katexfrom 0
- npm/katex>= 0.11.0, < 0.16.10
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-28245
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-28245
- PATCHhttps://github.com/KaTeX/KaTeX
- WEBhttps://github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770
- WEBhttps://github.com/KaTeX/KaTeX/security/advisories/GHSA-f98w-7cxr-ff2h