{"id":"CVE-2024-28245","published":"2024-03-25T19:53:01Z","modified":"2024-08-02T00:48:49Z","title":"KaTeX's \\includegraphics does not escape filename","vendor":"KaTeX","product":"KaTeX","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00406,"percentile":0.35747,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/KaTeX/KaTeX/security/advisories/GHSA-f98w-7cxr-ff2h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":7.15},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"katex","affectedVersions":[{"vendor":"KaTeX","product":"KaTeX","versions":[">= 0.11.0, < 0.6.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-03-26T19:26:52.258854Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"katex","vulnerableRanges":[">=0.11.0, <0.16.10"],"patched":["0.16.10"],"from":["GHSA-f98w-7cxr-ff2h"],"provenance":"source"}],"summary":{"text":"KaTeX's \\includegraphics command fails to escape the filename it is given, affecting the KaTeX JavaScript library used for TeX math rendering on the web. An attacker who can get KaTeX to render a crafted math expression containing \\includegraphics can cause arbitrary JavaScript to run or invalid HTML to be generated, and the attack requires low privileges and no user interaction, with the risk concentrated in deployments that render untrusted expressions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:47Z"},"euvd":{"id":"EUVD-2024-0914","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-katex-cve-2024-28245","children":[{"from":"CVE-2024-28245","to":"CVE-2025-23207","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/domTree.js"],"commits":["https://github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770","https://github.com/KaTeX/KaTeX/commit/ff289955e81aab89086eef09254cbf88573d415c"],"basis":"rarely changed file"}]}]}}