CVE-2025-57809: XGrammar affected by Denial of Service by infinite recursion grammars
Summary This 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.
Published Aug 25, 2025 · Updated Sep 10, 2025
Affected packages
xgrammar
- Ecosystem
- PyPI
- Affected
- < 0.1.21
- Fixed in
- 0.1.21
- Check
pip show xgrammar
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
This 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.
Credited to xendo.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
