{
  "id": "CVE-2025-57809",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-57809",
  "published_at": "2025-08-25T21:22:00.226Z",
  "title": "XGrammar affected by Denial of Service by infinite recursion grammars",
  "vendor": "mlc-ai",
  "product": "xgrammar",
  "cvss": {
    "score": 7.7,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-674",
  "cpes": [
    "cpe:2.3:a:mlc-ai:xgrammar:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.7,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "mlc-ai",
        "product": "xgrammar",
        "ranges": [
          "\u003c 0.1.21"
        ],
        "fixed_in": [
          "0.1.21"
        ]
      }
    ],
    "upgrade": [
      "Upgrade xgrammar to 0.1.21 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-5cmr-4px5-23pc"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mlc-ai/xgrammar/commit/b943feacb5a1caf4d39de8ec3bf7c7ce066dcee5"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
