# CVE-2024-28245: KaTeX's \includegraphics does not escape filename

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 40% of CVEs (2026-11-30)
- Published: 2024-03-25T19:38:34.000Z
- Modified: 2026-09-10T03:50:10.498Z
- Also known as: GHSA-f98w-7cxr-ff2h
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- KaTeX KaTeX: >= 0.11.0, < 0.6.10; from 0.11.0 before 0.16.10
- katex (npm): from 0.11.0 before 0.16.10

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/KaTeX/KaTeX/security/advisories/GHSA-f98w-7cxr-ff2h> (third-party-advisory, web)
- <https://github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28245> (advisory)
- <https://github.com/KaTeX/KaTeX> (package)

## Sources

- CVE List: [CVE-2024-28245](https://www.cve.org/CVERecord?id=CVE-2024-28245), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-f98w-7cxr-ff2h](https://github.com/advisories/GHSA-f98w-7cxr-ff2h), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-28245](https://nvd.nist.gov/vuln/detail/CVE-2024-28245), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-28245 · Whole record: https://cve.day/CVE-2024-28245.json · Rebuilt by cve.day 2026-11-25T22:58:37.886Z
