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

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

xgrammar vulnerable to denial of service by huge enum grammar

Technologies: xgrammar (PyPI). 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
    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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.