PyPA Advisory Database
PYSEC-2026-2322
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | xgrammar | All versions before 0.1.32 (fixed in 0.1.32) |
References
- https://access.redhat.com/security/cve/CVE-2026-25048
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25048.json
- https://access.redhat.com/errata/RHSA-2026:24977
- 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://github.com/mlc-ai/xgrammar/releases/tag/v0.1.32
- https://bugzilla.redhat.com/show_bug.cgi?id=2444840
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-7rgv-gqhr-fxg3