CVE-2025-32381
Last modified
CVE-2025-32381 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.41% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Mlc-Ai | Xgrammar | < 0.1.18 |
References
- https://github.com/mlc-ai/xgrammar/pull/243Issue Tracking, Patch
- https://github.com/vllm-project/vllm/pull/16283Issue Tracking, Patch
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-32381?
How severe is CVE-2025-32381?
How do I fix CVE-2025-32381?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-32376Discourse is an open-source discussion platform. Prior to ve…4.3
- CVE-2025-32377Rasa Pro is a framework for building scalable, dynamic conve…6.5
- CVE-2025-32378Shopware is an open source e-commerce software platform. Pri…5.3
- CVE-2025-32379Koa is expressive middleware for Node.js using ES2017 async …6.1
- CVE-2025-3238A vulnerability classified as critical has been found in PHP…9.8
- CVE-2025-32380The Apollo Router Core is a configurable, high-performance g…7.5
- CVE-2025-32382Metabase is an open source Business Intelligence and Embedde…1.8
- CVE-2025-32383MaxKB (Max Knowledge Base) is an open source knowledge base …7.2
- CVE-2025-32385EspoCRM is an Open Source Customer Relationship Management s…6.5
- CVE-2025-32386Helm is a tool for managing Charts. A chart archive file can…6.5
- CVE-2025-32387Helm is a package manager for Charts for Kubernetes. A JSON …6.5
- CVE-2025-32388SvelteKit is a framework for rapidly developing robust, perf…5.4
Are you affected by CVE-2025-32381?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
