CVE-2025-58446Published Sep 6, 2025 · Sep 6Updated Oct 28
xgrammar vulnerable to denial of service by huge enum grammar
mlc-ai xgrammar
Medium6.9Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| xgrammar PyPI |
|
|
Original description
xgrammar is an open-source library for efficient, flexible, and portable structured generation. A grammar optimizer introduced in 0.1.23 processes large grammars (>100k characters) at very low rates, and can be used for DOS of model providers. This issue is fixed in version 0.1.24.
From the CVE record · GitHub_M