CVE-2025-57809

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductMlc-ai Xgrammar
PublishedAug 25, 2025
First seenAug 25, 2025
Weakness typeCWE-674CWE-674

How to fix

Update
  • mlc-ai xgrammar0.1.21 or later
  • xgrammar0.1.21 or later

Affected products

ProductAffected versionsFixed in
mlc-ai xgrammarv < 0.1.210.1.21
xgrammarPyPIv < 0.1.210.1.21

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.