CVE-2025-57809

XGrammar affected by Denial of Service by infinite recursion grammars

State
Published
Severity
7.7 High
Published
Aug 25, 2025
Updated
Aug 26, 2025
Reserved
Aug 20, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.07.7 HighCVSS: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:PGitHub_M

Weaknesses

Affected Products

ProductVersions
xgrammarmlc-ai
  • < 0.1.21Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.