{"id":"CVE-2025-57809","state":"PUBLISHED","title":"XGrammar affected by Denial of Service by infinite recursion grammars","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.","publishedAt":"2025-08-25T21:22:00.226Z","updatedAt":"2025-08-26T20:19:34.998Z","severity":{"score":7.7,"label":"High","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["mlc-ai xgrammar"],"affected":[{"vendor":"mlc-ai","product":"xgrammar","versions":[{"version":"< 0.1.21","status":"affected"}]}],"references":["https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc","https://github.com/mlc-ai/xgrammar/issues/250","https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5"],"weaknesses":["CWE-674"],"ingestedAt":"2026-10-29T20:09:39.787Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/57xxx/CVE-2025-57809.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-57809","state":"PUBLISHED","datePublished":"2025-08-25T21:22:00.226Z","dateUpdated":"2025-08-26T20:19:34.998Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-08-20T14:30:35.010Z"},"containers":{"cna":{"title":"XGrammar affected by Denial of Service by infinite recursion grammars","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"mlc-ai","product":"xgrammar","versions":[{"version":"< 0.1.21","status":"affected"}]}],"references":[{"url":"https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc","name":"https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mlc-ai/xgrammar/issues/250","name":"https://github.com/mlc-ai/xgrammar/issues/250","tags":["x_refsource_MISC"]},{"url":"https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5","name":"https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-674","lang":"en","description":"CWE-674: Uncontrolled Recursion","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-08-25T21:22:00.226Z"},"source":{"advisory":"GHSA-5cmr-4px5-23pc","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-08-26T20:19:08.061700Z","id":"CVE-2025-57809","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-08-26T20:19:34.998Z"}}]}}}