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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | xgrammar | < 0.1.21 | 0.1.21 |
References
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc
- https://nvd.nist.gov/vuln/detail/CVE-2025-57809
- https://github.com/mlc-ai/xgrammar/issues/250
- https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5
- https://github.com/mlc-ai/xgrammar
- https://pypi.org/project/xgrammar
- https://github.com/advisories/GHSA-5cmr-4px5-23pc
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-674- Platform
- Python (PyPI)
- Package
xgrammar- Disclosed
- 25.08.2025
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-2054 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-5cmr-4px5-23pc - CC BY 4.0
Vulnerability history: xgrammar
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 04.2025 03.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 2
- Medium 2
Disclosures per year
- 2025: 3
- 2026: 1
-
XGrammar affected by Denial of Service by infinite recursion grammars this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.