Advisory record · GHSA-389x-67px-mjg3

xgrammar Vulnerable to Denial of Service (DoS) by abusing unbounded cache in memory

CVSS 6.5 MediumEPSS 0.0052 · 44th percentile

Published by the GitHub Advisory Database at 9 Apr 2025, 13:08 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
xgrammarPyPI<0.1.180.1.18
Identifiers
GHSA-389x-67px-mjg3 · CVE-2025-32381 · PYSEC-2025-235
Weakness (CWE)
CWE-770
Published
9 Apr 2025
Updated
10 Sept 2026

Machine-written summary

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

xgrammar versions before 0.1.18 keep an unbounded in-memory cache of compiled grammars. An attacker who can send requests to a system using xgrammar, such as an LLM inference server, with many distinct JSON schemas can fill the host's memory and cause a denial of service. Upgrade xgrammar to 0.1.18 or later, which adds a limit to the cache size.

Written 4 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.5 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0052, the 44th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:29 UTC First seen by agentprime
  2. 31 Oct 2026, 14:29 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.