{"cve":"CVE-2025-57809","nvd":{"published":"2025-08-25T22:15:33.297","modified":"2026-06-17T09:43:28.603","status":"Analyzed","description":"XGrammar is an open-source library for efficient, flexible, and portable structured generation. Prior to version 0.1.21, XGrammar has an infinite recursion issue in the grammar. This issue has been resolved in version 0.1.21.","cvss_v4":{"vector":"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","score":7.7},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-674"],"references":["https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5","https://github.com/mlc-ai/xgrammar/issues/250","https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc"],"products":["mlc-ai:xgrammar"],"source":"nvd","synced_at":"2026-10-19T22:07:46.309729541+00:00"},"epss":{"cve":"CVE-2025-57809","score":0.00485,"percentile":0.41756,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5cmr-4px5-23pc","url":"https://osv.dev/vulnerability/GHSA-5cmr-4px5-23pc","summary":"XGrammar affected by Denial of Service by infinite recursion grammars","modified":"2026-09-10T03:50:26.791886216Z","packages":[{"ecosystem":"PyPI","name":"xgrammar","purl":"pkg:pypi/xgrammar","ranges":["<0.1.21"],"fixed":["0.1.21"]}]},{"id":"PYSEC-2026-2054","url":"https://osv.dev/vulnerability/PYSEC-2026-2054","summary":"XGrammar affected by Denial of Service by infinite recursion grammars","modified":"2026-07-07T17:48:17.630220471Z","packages":[{"ecosystem":"PyPI","name":"xgrammar","purl":"pkg:pypi/xgrammar","ranges":["<0.1.21"],"fixed":["0.1.21"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}