CVE-2025-57809 XGrammar affected by Denial of Service by infinite recursion grammars
HighCVSS 7.7
EPSS 0.51%
- Published
- Updated
- Exploit status
- No public exploit known
Description
XGrammar is an open-source library for efficient, flexible, and portable structured generation. Prior to version 0.1.21, XGrammar has an infinite recursion issue in the grammar. This issue has been resolved in version 0.1.21.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi xgrammar(PyPI) | < 0.1.21 | 0.1.21 |
| pypi xgrammar(PyPI) | = 0.1.0 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.1 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.10 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.11 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.12 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.13 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.17 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.18 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.19 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.20 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.6 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.7 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.8 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.9 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.14 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.15 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.16 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.2 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.3 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.4 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.4rc2 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.5 | No fix listed |
| pypi xgrammar(PyPI) | = 0.1.5rc1 | No fix listed |
| mlc-ai xgrammar | = < 0.1.21 | No fix listed |
Show 1 more
| Product | Affected versions | Fixed in |
|---|---|---|
| mlc-ai xgrammar | < 0.1.21 | 0.1.21 |
References
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/mlc-ai/xgrammar/issues/250 exploit issue-tracking
- https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5 patch
- github.com product
- pypi.org product
- github.com vendor-advisory