CVE-2024-28245
MEDIUM 6.1CVSS 3.1KaTeX's `\includegraphics` does not escape filename
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.
- Published
- 25 Mar 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-116
- Also known as
- GHSA-f98w-7cxr-ff2h
- Sources
- NVDJSONOSV GHSA-f98w-7cxr-ff2hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | katex | katexcpe:2.3:a:katex:katex:*:*:*:*:*:*:*:* |
>= 0.11.0, < 0.16.10 | 0.16.10 |
| OSV | npm | katex | >= 0.11.0, < 0.16.10 | 0.16.10 |
References
- https://github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770 · Patch, WEB
- https://github.com/KaTeX/KaTeX/security/advisories/GHSA-f98w-7cxr-ff2h · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-28245 · ADVISORY
- https://github.com/KaTeX/KaTeX · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 25 Mar 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 Mar 2024)