p PatchFirst

CVE-2025-58446

CVE-2025-58446 · xgrammar vulnerable to denial of service by huge enum grammar

This page contains facts from public vulnerability sources. Check the original advisory before updating.

xgrammar is an open-source library for efficient, flexible, and portable structured generation. A grammar optimizer introduced in 0.1.23 processes large grammars (>100k characters) at very low rates, and can be used for DOS of model providers. This issue is fixed in version 0.1.24.

CVSS 6.9 · Medium · EPSS 0.6% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • xgrammar

    Versions
    • = 0.1.23, < 0.1.24: Affected

    No fix published

  • xgrammar PyPI

    Versions
    • 0.1.23
    Affected ranges
    • ECOSYSTEM: ≥ 0.1.23, < 0.1.24

    Update to 0.1.24

Original sources

Check your server →