MediumVulnerabilityLLM-specific
GHSA-9q5r-wfvf-rr7f: xgrammar vulnerable to denial of service by huge enum grammar
- Identifiers
- CVE-2025-58446GHSA-9q5r-wfvf-rr7f
- Published
- Record updated
- Affected
- xgrammar = 0.1.23
- Fixed in
- 0.1.24
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.7%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
A regression in xgrammar 0.1.23, traced to the Earley parser and the grammar optimizer introduced in v0.1.23, makes very large JSON schema grammars (over 100k characters, around 70k tokens) take minutes to process, where 0.1.16 handled them fine. The grammar parsing alone can take longer than LLM inference, so an attacker can use a crafted schema with a huge enum to denial-of-service model providers.
Mitigation
v0.1.24 solved this problem by optimizing the speed of the grammar optimizer and disabling some slow optimizations for large grammars.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- xgrammarPyPILLM dependency since 2024-11-22, 3 tracked dependents
Related items
- MediumCVE-2026-143823: MLflow denial of service via regex backtracking in skill registration errorsSimilar attack, NVD/CVE Database
- MediumAutonomous AI attack targeted Perplexity to steal cloud credentialsSimilar attack, BleepingComputer
- HighCVE-2026-76813: CKAN MCP Server denial of service through unbounded response decompressionSimilar attack, NVD/CVE Database
- MediumCVE-2026-142225: Bytebase DBHub regular expression denial of service via search_objectsSimilar attack, NVD/CVE Database
- HighCVE-2026-59345: ExtractedTextFormatter denial of service when processing untrusted document textSimilar attack, NVD/CVE Database