{"id":"EUVD-2024-0906","enisaUuid":"f6a67ab8-4895-39d2-9ee3-bc5a9406d681","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 `\\def` or `\\newcommand` that causes a near-infinite loop, despite setting `maxExpand` to avoid such loops. KaTeX supports an option named maxExpand which aims to prevent infinitely recursive macros from consuming all available memory and/or triggering a stack overflow error. Unfortunately, support for \"Unicode (sub|super)script characters\" allows an attacker to bypass this limit. Each sub/superscript group instantiated a separate Parser with its own limit on macro executions, without inheriting the current count of macro executions from its parent. This has been corrected in KaTeX v0.16.10.","datePublished":"Mar 25, 2024, 7:45:50 PM","dateUpdated":"Aug 2, 2024, 12:48:49 AM","baseScore":6.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","references":"https://github.com/KaTeX/KaTeX/security/advisories/GHSA-cvr6-37gx-v8wc\nhttps://github.com/KaTeX/KaTeX/commit/085e21b5da05414efefa932570e7201a7c70e5b2\n","aliases":"CVE-2024-28244\nGHSA-cvr6-37gx-v8wc\n","assigner":"GitHub_M","epss":2.16,"enisaIdProduct":[{"id":"c2414861-a576-3249-89f0-efb9c92dfff4","product":{"name":"KaTeX","vendor":{"name":"KaTeX"}},"product_version":"0.15.4, \u003c 0.16.10"}],"enisaIdVendor":[{"id":"a4869dac-2e76-38c4-a653-7f3ce2ad90b4","vendor":{"name":"KaTeX"}}],"enisaIdVulnerability":[{"id":"066682bf-2897-3eb4-831d-bc93f783cc15","vulnerability":{"id":"GHSA-cvr6-37gx-v8wc","description":"KaTeX\u0027s maxExpand bypassed by Unicode sub/superscripts","datePublished":"Mar 25, 2024, 7:38:29 PM","dateUpdated":"Mar 25, 2024, 10:32:01 PM","baseScore":null,"references":"https://github.com/KaTeX/KaTeX/security/advisories/GHSA-cvr6-37gx-v8wc\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-28244\nhttps://github.com/KaTeX/KaTeX/commit/085e21b5da05414efefa932570e7201a7c70e5b2\nhttps://github.com/KaTeX/KaTeX\n","enisa_id":"EUVD-2024-0906\n","aliases":"GHSA-cvr6-37gx-v8wc\nCVE-2024-28244\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:35:59 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"852535b0-cba0-3fb4-ad1a-b0af10d153ff","vulnerability":{"id":"CVE-2024-28244","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 `\\def` or `\\newcommand` that causes a near-infinite loop, despite setting `maxExpand` to avoid such loops. KaTeX supports an option named maxExpand which aims to prevent infinitely recursive macros from consuming all available memory and/or triggering a stack overflow error. Unfortunately, support for \"Unicode (sub|super)script characters\" allows an attacker to bypass this limit. Each sub/superscript group instantiated a separate Parser with its own limit on macro executions, without inheriting the current count of macro executions from its parent. This has been corrected in KaTeX v0.16.10.","datePublished":"Mar 25, 2024, 7:45:50 PM","dateUpdated":"Aug 2, 2024, 12:48:49 AM","status":"PUBLISHED","baseScore":6.5,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","references":"https://github.com/KaTeX/KaTeX/security/advisories/GHSA-cvr6-37gx-v8wc\nhttps://github.com/KaTeX/KaTeX/commit/085e21b5da05414efefa932570e7201a7c70e5b2\n","enisa_id":"EUVD-2024-0906\n","assigner":"GitHub_M","epss":2.16,"dataProcessed":"Nov 15, 2026, 1:37:03 AM","vulnerabilityProduct":[{"id":"fa01a9fa-3645-32fd-8bea-1bfc380a4a32","product":{"name":"KaTeX","vendor":{"name":"KaTeX"}},"product_version":"0.15.4, \u003c 0.16.10"}],"vulnerabilityVendor":[{"id":"7a05bfbf-a7ad-3e58-a853-f1c425e2fac3","vendor":{"name":"KaTeX"}}]}}],"enisaIdAdvisory":[]}