Vulnerability in Mlc-Ai Xgrammar
CVE-2025-57809
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.005, 44.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Mlc-Ai Xgrammar — versions < 0.1.21
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc (Vendor Advisory)
- https://github.com/mlc-ai/xgrammar/issues/250 (Exploit, Issue Tracking)
- https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5 (Patch)