Advisory record · GHSA-9q5r-wfvf-rr7f

xgrammar vulnerable to denial of service by huge enum grammar

CVSS 6.9 MediumEPSS 0.0062 · 50th percentile

Published by the GitHub Advisory Database at 5 Sept 2025, 21:10 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
xgrammarPyPI>=0.1.23, <0.1.240.1.24
Identifiers
GHSA-9q5r-wfvf-rr7f · CVE-2025-58446 · PYSEC-2026-2055
Weakness (CWE)
CWE-770
Published
5 Sept 2025
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The xgrammar package versions 0.1.23 up to but not including 0.1.24 are vulnerable to denial of service when processing a very large grammar, such as one with an enum of many entries, which can take minutes to parse. The source describes this as a regression in the grammar optimizer introduced in 0.1.23. Upgrade to xgrammar 0.1.24, which speeds up the optimizer and skips some slow optimizations for large grammars.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.9 Medium 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0062, the 50th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:34 UTC First seen by agentprime
  2. 31 Oct 2026, 14:34 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.