{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-28245","id":"CVE-2024-28245","title":"KaTeX's \\includegraphics does not escape filename","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.","descriptionLong":"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":"2024-03-25T19:53:01.320Z","updated":"2026-10-28T02:30:56.132596816Z","reserved":"2024-03-07T14:33:30.036Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["KaTeX"],"affectedProducts":[{"vendor":"KaTeX","product":"KaTeX","defaultStatus":null,"versions":[{"version":">= 0.11.0, < 0.6.10","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"katex","purl":"pkg:npm/katex","ranges":[">=0.11.0 <0.16.10"],"fixed":["0.16.10"],"advisory":"GHSA-f98w-7cxr-ff2h"}],"cwes":["CWE-116"],"aliases":["GHSA-f98w-7cxr-ff2h"],"references":[{"url":"https://github.com/KaTeX/KaTeX/security/advisories/GHSA-f98w-7cxr-ff2h","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/KaTeX/KaTeX/commit/c5897fcd1f73da9612a53e6b5544f1d776e17770","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/28xxx/CVE-2024-28245.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28245","tags":["advisory"]},{"url":"https://github.com/KaTeX/KaTeX","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00406,"epssPercentile":0.35613,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-28245","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28245","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-28245","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f98w-7cxr-ff2h","ok":true,"note":"GHSA-f98w-7cxr-ff2h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-28245","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}