{"id":"PYSEC-2026-2054","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","GHSA-5cmr-4px5-23pc"],"modified":"2026-07-07T17:48:17.630220471Z","published":"2026-07-07T16:03:01.881040Z","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"},{"type":"PACKAGE","url":"https://pypi.org/project/xgrammar"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-5cmr-4px5-23pc"}],"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.14","0.1.15","0.1.16","0.1.17","0.1.18","0.1.19","0.1.2","0.1.20","0.1.3","0.1.4","0.1.4rc2","0.1.5","0.1.5rc1","0.1.6","0.1.7","0.1.8","0.1.9"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/xgrammar/PYSEC-2026-2054.yaml"}}],"schema_version":"1.7.5","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"}]}