High severity7.5NVD Advisory· Published Aug 25, 2025· Updated Jun 17, 2026
CVE-2025-57809
CVE-2025-57809
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
xgrammarPyPI | < 0.1.21 | 0.1.21 |
Affected products
4- ghsa-coords2 versions
< 0.1.21+ 1 more
- (no CPE)range: < 0.1.21
- (no CPE)range: < 24.04-r15
Patches
Vulnerability mechanics
References
5- github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5nvdPatchWEB
- github.com/mlc-ai/xgrammar/issues/250nvdExploitIssue TrackingWEB
- github.com/advisories/GHSA-5cmr-4px5-23pcghsaADVISORY
- github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pcnvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2025-57809ghsaADVISORY
News mentions
0No linked articles in our index yet.