CVE-2025-57809: XGrammar - Denial of Service
- Cve: CVE-2025-57809
- Name: XGrammar - Denial of Service
- 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.
- Impact: Attackers can cause denial of service by triggering infinite recursion, leading to application crash or resource exhaustion.
- Remediation: Update to version 0.1.21 or later.
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00514
- Epss percentile: 0.44688
- Assignee: [email protected]
- Published at: 2025-08-25T22:15:33Z
- Age in days: 456
- Modified at: 2026-06-17T09:43:28Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-57809
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-674 | Uncontrolled Recursion |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/mlc-ai/xgrammar/issues/250 | nvd | 2025-08-25 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mlc-ai:xgrammar | < 0.1.21 | no | nvd | /v1/products/mlc-ai/xgrammar |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| mlc-ai/xgrammar | commit, issues, package, security_advisory | yes | /v1/repositories/mlc-ai/xgrammar |
Index
- Repositories: 32
- Repositories high signal: 23
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-08-25
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts