GitHub Advisoryadvisory · PyPI
GHSA-5cmr-4px5-23pc XGrammar affected by Denial of Service by infinite recursion grammars
HIGH
Official page ↗
- Aliases
- CVE-2025-57809
- Ecosystem
- PyPI
- Packages
- xgrammar
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-674
- Reviewed
- 2025-08-25
Affected packages
• PyPI xgrammar: < 0.1.21 → fixed in 0.1.21
Description
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.
Related
Alias · CVE (1)
- CVE-2025-57809 XGrammar is an open-source library for efficient, flexible, and portable structured generation. vulnerability
Weakness · CWE (1)
- CWE-674 Uncontrolled Recursion weakness
References
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc web
- https://nvd.nist.gov/vuln/detail/CVE-2025-57809 advisory
- https://github.com/mlc-ai/xgrammar/issues/250 web
- https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5 web
- https://github.com/mlc-ai/xgrammar package