PYSEC-2026-2054
XGrammar affected by Denial of Service by infinite recursion grammars
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2025-57809
- Alias
- GHSA-5cmr-4px5-23pc
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS_V4
- CVSS: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
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| PyPI · xgrammar | introduced 0, fixed 0.1.21 |
Références
- https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-57809 ADVISORY
- https://github.com/mlc-ai/xgrammar/issues/250 WEB
- https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5 WEB
- https://github.com/mlc-ai/xgrammar PACKAGE
- https://pypi.org/project/xgrammar PACKAGE
- https://github.com/advisories/GHSA-5cmr-4px5-23pc ADVISORY
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — PyPA Advisory Database |