CVE-2025-57809

HIGH7.5EPSS 0.05%

XGrammar affected by Denial of Service by infinite recursion grammars

Published: 8/25/2025Modified: 2/4/2026
Also known as:GHSA-5cmr-4px5-23pcCGA-8344-8xrr-rp7x

Description

### Summary This issue: http://github.com/mlc-ai/xgrammar/issues/250 should have it's own security advisory. Since several tools accept and pass user supplied grammars to xgrammar, and it is so easy to trigger it seems like a High.

Affected packages (1)

CVSS scores

SourceVersionSeverityVector
osvCVSS 4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
osvCVSS 3.1HIGH7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References (5)