PyPI (Python)Worst: High4 advisories

xgrammar: known vulnerabilities

xgrammar has 4 reviewed security advisories in the GitHub Advisory Database — 2 high, 2 moderate. The most recent was published 2026-03-05. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the xgrammar versions running across your servers, containers and images, and ranks what to patch first.

How to fix xgrammar

Upgrade xgrammar to a release at or above the fixed version shown for each advisory below. For PyPI (Python):

pip install --upgrade xgrammar (pin xgrammar>=0.1.32)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (4)

xgrammar vulnerable to DoS via multi-layer nesting High CWE-674 — Affected: before 0.1.32. Fixed in 0.1.32. Published 2026-03-05. GHSA-7rgv-gqhr-fxg3 · CVE-2026-25048
xgrammar vulnerable to denial of service by huge enum grammar Moderate CWE-770 — Affected: from 0.1.23 up to 0.1.24. Fixed in 0.1.24. Published 2025-09-06. GHSA-9q5r-wfvf-rr7f · CVE-2025-58446
XGrammar affected by Denial of Service by infinite recursion grammars High 7.5 CWE-674 — Affected: before 0.1.21. Fixed in 0.1.21. Published 2025-08-25. GHSA-5cmr-4px5-23pc · CVE-2025-57809
xgrammar Vulnerable to Denial of Service (DoS) by abusing unbounded cache in memory Moderate 6.5 CWE-770 — Affected: before 0.1.18. Fixed in 0.1.18. Published 2025-04-09. GHSA-389x-67px-mjg3 · CVE-2025-32381

Find xgrammar across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.