SecurityContext

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

IdName
CWE-674Uncontrolled Recursion

Public exploits

UrlSourceAdded date
https://github.com/mlc-ai/xgrammar/issues/250nvd2025-08-25

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5Patch
https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pcVendor Advisory
https://github.com/mlc-ai/xgrammar/issues/250Exploit, Issue Tracking

Products

ProductAffectedPlatform boundSourcesUrl
mlc-ai:xgrammar< 0.1.21nonvd/v1/products/mlc-ai/xgrammar

Projects

RepositoryLink kindsIndexedUrl
mlc-ai/xgrammarcommit, issues, package, security_advisoryyes/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