xgrammar
Affected
- introduced
0, fixed0.1.21(ecosystem)
Fixed versions
0.1.21
Fix
- Fixed version
0.1.21pip install --upgrade xgrammar==0.1.21
Advisory
Also known as: CVE-2025-57809, GHSA-5cmr-4px5-23pc
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.
High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
0, fixed 0.1.21 (ecosystem)0.1.21
0.1.21pip install --upgrade xgrammar==0.1.21Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0