Vulnerability
CVE-2025-58446
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.
4 advisories report this vulnerability, across 2 ecosystems.
Advisories
- CGA-52v6-jmf4-cvhv
- CGA-wvx5-557p-g47p
-
GHSA-9q5r-wfvf-rr7f
xgrammar vulnerable to denial of service by huge enum grammar
-
PYSEC-2026-2055
xgrammar vulnerable to denial of service by huge enum grammar