Vulnerability · Published Mar 5, 2026 · Assigned by GitHub_M
CVE-2026-25048xgrammar: Multi-layer nesting causes DoS
High 7.5
In plain English
A high-severity security flaw in xgrammar from mlc-ai. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.3%top 29.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | xgrammar | 0.1.32 | GHSA-7rgv-gqhr-fxg3 |
| PyPI | xgrammar | 0.1.32 | PYSEC-2026-2322 |
Affected products (as reported)
Weakness: CWE-674 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-7rgv-gqhr-fxg3 x_refsource_CONFIRM
- https://github.com/mlc-ai/xgrammar/releases/tag/v0.1.32 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-25048 vdb-entry, x_refsource_REDHAT
- RHBZ#2444840 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25048.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:6761 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:5809 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6762 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:42644 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:24977 vendor-advisory, x_refsource_REDHAT