Live threats

All CVEs / Mlc-ai

CVE-2025-32381Mlc-ai Xgrammar

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
—
Auth required
Yes
Published
Apr 9, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-770
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

XGrammar is an open-source library for efficient, flexible, and portable structured generation. Prior to 0.1.18, Xgrammar includes a cache for compiled grammars to increase performance with repeated use of the same grammar. This cache is held in memory. Since the cache is unbounded, a system making use of xgrammar can be abused to fill up a host's memory and case a denial of service. For example, sending many small requests to an LLM inference server with unique JSON schemas would eventually cause this denial of service to occur. This vulnerability is fixed in 0.1.18.

Original NVD text.

What to do

  1. Apply the vendor's security update for Xgrammar.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI xgrammar < 0.1.18 0.1.18 pip install "xgrammar>=0.1.18"
PyPI xgrammar < 0.1.18 0.1.18 pip install "xgrammar>=0.1.18"

Per OSV / GitHub Advisories (GHSA-389x-67px-mjg3, PYSEC-2025-235). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mlc-aixgrammar< 0.1.18

Official sources

References

Links published by the sources. Open them with care.