high7.5
CVE-2025-57809
XGrammar affected by Denial of Service by infinite recursion grammars
Impact
### 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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | xgrammar | < 0.1.21 | 0.1.21 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Mlc-Ai | Xgrammar | before 0.1.21 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5
- https://github.com/mlc-ai/xgrammar/issues/250
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc
- https://github.com/advisories/GHSA-5cmr-4px5-23pc
- https://nvd.nist.gov/vuln/detail/CVE-2025-57809