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.
References
| Link | Resource |
|---|---|
| https://github.com/mlc-ai/xgrammar/commit/ced69c3ad2f8f61b516cc278a342e7c644383e27 | Patch |
| https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-9q5r-wfvf-rr7f | Exploit Vendor Advisory |
Configurations
History
18 Sep 2025, 15:57
| Type | Values Removed | Values Added |
|---|---|---|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 7.5 |
| References | () https://github.com/mlc-ai/xgrammar/commit/ced69c3ad2f8f61b516cc278a342e7c644383e27 - Patch | |
| References | () https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-9q5r-wfvf-rr7f - Exploit, Vendor Advisory | |
| First Time |
Mlc-ai xgrammar
Mlc-ai |
|
| CPE | cpe:2.3:a:mlc-ai:xgrammar:0.1.23:*:*:*:*:*:*:* |
06 Sep 2025, 19:15
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2025-09-06 19:15
Updated : 2025-09-18 15:57
NVD link : CVE-2025-58446
Mitre link : CVE-2025-58446
CVE.ORG link : CVE-2025-58446
JSON object : View
Products Affected
mlc-ai
- xgrammar
CWE
CWE-770
Allocation of Resources Without Limits or Throttling
