Advisory

PYSEC-2026-2322

Also known as: CVE-2026-25048, GHSA-7rgv-gqhr-fxg3

Summary

The record has no summary.

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-03-05 16:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

xgrammar

PyPI · All systems

Affected

  • introduced 0, fixed 0.1.32 (ecosystem)

Fixed versions

0.1.32

Fix

  • Fixed version 0.1.32
    pip install --upgrade xgrammar==0.1.32

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences