{
  "id": "CVE-2025-58446",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-58446",
  "published_at": "2025-09-06T19:06:10.141Z",
  "title": "xgrammar vulnerable to denial of service by huge enum grammar",
  "vendor": "mlc-ai",
  "product": "xgrammar",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "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. A grammar optimizer introduced in 0.1.23 processes large grammars (\u003e100k characters) at very low rates, and can be used for DOS of model providers. This issue is fixed in version 0.1.24.",
  "cwe": "CWE-770",
  "cpes": [
    "cpe:2.3:a:mlc-ai:xgrammar:0.1.23:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.9,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "mlc-ai",
        "product": "xgrammar",
        "ranges": [
          "= 0.1.23, \u003c  0.1.24"
        ],
        "fixed_in": [
          "0.1.24"
        ]
      }
    ],
    "upgrade": [
      "Upgrade xgrammar to 0.1.24 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-9q5r-wfvf-rr7f"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mlc-ai/xgrammar/commit/ced69c3ad2f8f61b516cc278a342e7c644383e27"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
