Uncontrolled Recursion Affecting mlc-ai/xgrammar package, versions [0.1.31,0.1.32)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.71% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-MLCAIXGRAMMAR-15435540
  • published6 Mar 2026
  • disclosed5 Mar 2026
  • creditylwango613

Introduced: 5 Mar 2026

CVE-2026-25048  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade mlc-ai/xgrammar to version 0.1.32 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion through the handling of multi-level nested grammar rules. An attacker can cause a segmentation fault and crash the application by submitting deeply nested input.

CVSS Base Scores

version 4.0
version 3.1