CVE-2025-57809

XGrammar affected by Denial of Service by infinite recursion grammars

HIGH
7.5
CVSS Score
Published: August 25, 2025 at 09:22 PM UTC
Updated: June 17, 2026 at 09:43 AM UTC
1 product affected across 1 vendorXgrammar

Using xgrammar by mlc-ai?

Get instant alerts when new vulnerabilities affect xgrammar - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

Description

XGrammar is an open-source library for efficient, flexible, and portable structured generation. Prior to version 0.1.21, XGrammar has an infinite recursion issue in the grammar. This issue has been resolved in version 0.1.21.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.1.21
Affected range stops below 0.1.21, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-674

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card