{"cve":"CVE-2024-28243","nvd":{"published":"2024-03-25T20:15:07.950","modified":"2026-06-17T07:21:15.070","status":"Modified","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 `\\edef` that causes a near-infinite loop, despite setting `maxExpand` to avoid such loops. This can be used as an availability attack, where e.g. a client rendering another user's KaTeX input will be unable to use the site due to memory overflow, tying up the main thread, or stack overflow. Upgrade to KaTeX v0.16.10 to remove this vulnerability.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-674"],"references":["https://github.com/KaTeX/KaTeX/commit/e88b4c357f978b1bca8edfe3297f0aa309bcbe34","https://github.com/KaTeX/KaTeX/security/advisories/GHSA-64fm-8hw2-v72w","https://github.com/github/advisory-database/pull/6777","https://github.com/KaTeX/KaTeX/commit/e88b4c357f978b1bca8edfe3297f0aa309bcbe34","https://github.com/KaTeX/KaTeX/security/advisories/GHSA-64fm-8hw2-v72w"],"products":["katex:katex"],"source":"nvd","synced_at":"2026-10-19T21:47:51.568503435+00:00"},"epss":{"cve":"CVE-2024-28243","score":0.01414,"percentile":0.72747,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-64fm-8hw2-v72w","url":"https://osv.dev/vulnerability/GHSA-64fm-8hw2-v72w","summary":"KaTeX's maxExpand bypassed by `\\edef`","modified":"2026-02-05T16:04:19.949868Z","packages":[{"ecosystem":"npm","name":"katex","purl":"pkg:npm/katex","ranges":[">=0.12.0 <0.16.10"],"fixed":["0.16.10"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}