HIGH7.5
PYSEC-2026-2322
Quick fix
PYSEC-2026-2322 — xgrammar: upgrade to the fixed version with the command below.
pip install --upgrade 'xgrammar>=0.1.32'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://access.redhat.com/security/cve/CVE-2026-25048[WEB]
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25048.json[WEB]
- https://access.redhat.com/errata/RHSA-2026:24977[ADVISORY]
- https://access.redhat.com/errata/RHSA-2026:5809[ADVISORY]
- https://access.redhat.com/errata/RHSA-2026:6761[ADVISORY]
- https://access.redhat.com/errata/RHSA-2026:6762[ADVISORY]
- https://github.com/mlc-ai/xgrammar/releases/tag/v0.1.32[ADVISORY]
- https://bugzilla.redhat.com/show_bug.cgi?id=2444840[REPORT]
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-7rgv-gqhr-fxg3[EVIDENCE]