Allocation of Resources Without Limits or Throttling Affecting xgrammar package, versions [0.1.23,0.1.24)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th 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 Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-XGRAMMAR-12670414
  • published14 Sept 2025
  • disclosed6 Sept 2025
  • creditxendo

Introduced: 6 Sep 2025

NewCVE-2025-58446  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade xgrammar to version 0.1.24 or higher.

Overview

xgrammar is an Efficient, Flexible and Portable Structured Generation

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to wrong boundary check in the earley parser. An attacker can cause resource exhaustion and disrupt service availability by submitting extremely large grammar inputs.

References

CVSS Base Scores

version 4.0
version 3.1