What’s Vulnerable › Vulnerabilities
CVE-2026-25048: xgrammar: Multi-layer nesting causes DoS
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-03-05 · updated 2026-07-21
- Weakness: CWE-674
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 products
- mlc-ai xgrammar: before 0.1.32 — fixed in 0.1.32
How to fix
Upgrade to a fixed version: mlc-ai xgrammar 0.1.32. Check the vendor advisory for mitigations.
References
- https://github.com/mlc-ai/xgrammar/releases/tag/v0.1.32
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-7rgv-gqhr-fxg3
- https://access.redhat.com/errata/RHSA-2026:24977
- https://access.redhat.com/errata/RHSA-2026:42644
- https://access.redhat.com/errata/RHSA-2026:5809
- https://access.redhat.com/errata/RHSA-2026:6761
- https://access.redhat.com/errata/RHSA-2026:6762
- https://access.redhat.com/security/cve/CVE-2026-25048
- https://bugzilla.redhat.com/show_bug.cgi?id=2444840
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25048.json
Get alerted when CVE-2026-25048 or the next vulnerability affects your stack