Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. xgrammar
  4. ›
  5. CVE-2026-25048

CVE-2026-25048: xgrammar vulnerable to DoS via multi-layer nesting

March 5, 2026

The multi-level nested syntax caused a segmentation fault (core dump).

References

  • github.com/advisories/GHSA-7rgv-gqhr-fxg3
  • github.com/mlc-ai/xgrammar
  • github.com/mlc-ai/xgrammar/releases/tag/v0.1.32
  • github.com/mlc-ai/xgrammar/security/advisories/GHSA-7rgv-gqhr-fxg3
  • nvd.nist.gov/vuln/detail/CVE-2026-25048

Code Behaviors & Features

Detect and mitigate CVE-2026-25048 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.1.32

Fixed versions

  • 0.1.32

Solution

Upgrade to version 0.1.32 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

pypi/xgrammar/CVE-2026-25048.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 05 Mar 2026 19:04:38 +0000.