{"id":"CVE-2024-28245","summary":"KaTeX's \\includegraphics does not escape filename","details":"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.","aliases":["GHSA-f98w-7cxr-ff2h"],"modified":"2026-04-10T05:12:02.532720Z","published":"2024-03-25T19:53:01.320Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28245.json","cwe_ids":["CWE-116"],"cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28245.json"},{"type":"ADVISORY","url":"https://github.com/KaTeX/KaTeX/security/advisories/GHSA-f98w-7cxr-ff2h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28245"},{"type":"FIX","url":"https://github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/katex/katex","events":[{"introduced":"898e3b0f5ba37b37d013f51b77dcafe434c05748"},{"fixed":"ab323598fbf90a39c2c65bccd88f86b1ddfad931"},{"fixed":"c5897fcd1f73da9612a53e6b5544f1d776e17770"}],"database_specific":{"versions":[{"introduced":"0.11.0"},{"fixed":"0.16.10"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-28245.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"}]}