CVE-2026-25048

xgrammar: Multi-layer nesting causes DoS

Published Mar 5, 2026 CVSS 4.0 · 8.7 High EPSS 1.3% KEV · Not listed
Description
xgrammar is an open-source library for efficient, flexible, and portable structured generation. Prior to version 0.1.32, the multi-level nested syntax caused a segmentation fault (core dumped). This issue has been patched in version 0.1.32.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-7rgv-gqhr-fxg3 xgrammar vulnerable to DoS via multi-layer nesting
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mlc-ai:xgrammar:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Mlc-ai
Mlc-ai xgrammar
Vendors & Products Mlc-ai
Mlc-ai xgrammar
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description xgrammar is an open-source library for efficient, flexible, and portable structured generation. Prior to version 0.1.32, the multi-level nested syntax caused a segmentation fault (core dumped). This issue has been patched in version 0.1.32.
Title xgrammar: Multi-layer nesting causes DoS
Weaknesses CWE-674
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 21, 2026, 12:05 PM
Reserved
Jan 28, 2026, 2:50 PM
Status
Modified
Published
Mar 5, 2026, 4:16 PM
Modified
Jul 21, 2026, 12:17 PM
Severity
Important
Public date
Mar 5, 2026, 3:34 PM