# CVE-2025-58446: PYSEC-2026-2055 - xgrammar vulnerable to denial of service by huge enum grammar

Source: https://junglewise.ai/threats/cve-2025-58446-xgrammar-vulnerable-to-denial-of-service-by-huge-enum-grammar  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2025-58446 · Severity: medium · CVSS 4 · Published 2026-07-07

xgrammar vulnerable to denial of service by huge enum grammar

Technologies: [xgrammar (PyPI)](https://junglewise.ai/threats/technologies/xgrammar). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-58446 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-58446 being exploited in the wild.

**How severe is CVE-2025-58446?** Medium severity, with a CVSS score of 4, published 7 July 2026.

**Which products and versions are affected?** xgrammar (PyPI) ECOSYSTEM:introduced=0.1.23,fixed=0.1.24.

**Is there a fix for CVE-2025-58446?** Yes. xgrammar (PyPI): upgrade to 0.1.24 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-58446?** Check whether you run xgrammar (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- xgrammar (PyPI): upgrade to 0.1.24 or later

  ```sh
  pip install "xgrammar>=0.1.24"
  ```


## Affected products

- xgrammar (PyPI) ECOSYSTEM:introduced=0.1.23,fixed=0.1.24

## Identifiers

- CVE-2025-58446
- GHSA-9q5r-wfvf-rr7f
- PYSEC-2026-2055

## Related threats

- [PYSEC-2026-2054 - XGrammar affected by Denial of Service by infinite recursion grammars](https://junglewise.ai/threats/cve-2025-57809-xgrammar-affected-by-denial-of-service-by-infinite-recursion)
- [mlc-ai xgrammar uncontrolled recursion in nested syntax](https://junglewise.ai/threats/cve-2026-25048-mlc-ai-xgrammar-uncontrolled-recursion-in-nested-syntax)
- [mlc-ai xgrammar unbounded memory cache denial of service](https://junglewise.ai/threats/cve-2025-32381-mlc-ai-xgrammar-unbounded-memory-cache-denial-of-service)
