{"id":"GHSA-5cmr-4px5-23pc","summary":"XGrammar affected by Denial of Service by infinite recursion grammars","details":"### Summary\nThis issue: http://github.com/mlc-ai/xgrammar/issues/250 should have it's own security advisory. Since several tools accept and pass user supplied grammars to xgrammar, and it is so easy to trigger it seems like a High.","aliases":["CVE-2025-57809","PYSEC-2026-2054"],"modified":"2026-09-10T03:50:26.791886216Z","published":"2025-08-25T20:43:45Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2025-08-25T20:43:45Z","nvd_published_at":"2025-08-25T22:15:33Z","cwe_ids":["CWE-674"],"severity":"HIGH"},"references":[{"type":"WEB","url":"https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57809"},{"type":"WEB","url":"https://github.com/mlc-ai/xgrammar/issues/250"},{"type":"WEB","url":"https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5"},{"type":"PACKAGE","url":"https://github.com/mlc-ai/xgrammar"}],"affected":[{"package":{"name":"xgrammar","ecosystem":"PyPI","purl":"pkg:pypi/xgrammar"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.21"}]}],"versions":["0.1.0","0.1.1","0.1.10","0.1.11","0.1.12","0.1.13","0.1.17","0.1.18","0.1.19","0.1.20","0.1.6","0.1.7","0.1.8","0.1.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-5cmr-4px5-23pc/GHSA-5cmr-4px5-23pc.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P"}]}