CVE-2025-57809

XGrammar affected by Denial of Service by infinite recursion grammars

Published Aug 25, 2025 CVSS 4.0 · 7.7 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-28633 XGrammar affected by Denial of Service by infinite recursion grammars
Github GHSA Github GHSA GHSA-5cmr-4px5-23pc XGrammar affected by Denial of Service by infinite recursion grammars
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mlc-ai:xgrammar:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Mlc-ai
Mlc-ai xgrammar
Vendors & Products Mlc-ai
Mlc-ai xgrammar
Type Values Removed Values Added
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.
Title XGrammar affected by Denial of Service by infinite recursion grammars
Weaknesses CWE-674
References
Metrics cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 26, 2025, 8:19 PM
Reserved
Aug 20, 2025, 2:30 PM
Status
Analyzed
Published
Aug 25, 2025, 10:15 PM
Modified
Jun 17, 2026, 9:43 AM
Severity
Important
Public date
Aug 25, 2025, 9:22 PM