{"data":{"id":"c96709b0-807a-41be-a8d2-5668da816a43","title":"GHSA-9q5r-wfvf-rr7f: xgrammar vulnerable to denial of service by huge enum grammar","summary":"A regression in xgrammar 0.1.23, traced to the Earley parser and the grammar optimizer introduced in v0.1.23, makes very large JSON schema grammars (over 100k characters, around 70k tokens) take minutes to process, where 0.1.16 handled them fine. The grammar parsing alone can take longer than LLM inference, so an attacker can use a crafted schema with a huge enum to denial-of-service model providers.","solution":"v0.1.24 solved this problem by optimizing the speed of the grammar optimizer and disabling some slow optimizations for large grammars.","labels":["security"],"sourceUrl":"https://github.com/advisories/GHSA-9q5r-wfvf-rr7f","publishedAt":"2025-09-05T21:10:06.000Z","cveId":"CVE-2025-58446","cweIds":["CWE-770"],"cvssScore":null,"cvssSeverity":"medium","severity":"medium","attackType":["denial_of_service"],"issueType":"vulnerability","affectedPackages":["xgrammar@= 0.1.23 (fixed: 0.1.24)"],"affectedPackageNames":["xgrammar"],"affectedPackageRefs":["pypi:xgrammar"],"affectedVendors":[],"affectedVendorsRaw":["xgrammar"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":null,"headlinePromptVersion":null,"cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":"unknown","epssScore":0.00668,"epssPercentile":0.53293,"epssCheckedAt":"2026-12-05T00:04:02.391Z","epssHistory":[["2026-11-04",0.00619],["2026-11-05",0.00619],["2026-11-06",0.00619],["2026-11-07",0.00619],["2026-11-08",0.00619],["2026-11-09",0.00619],["2026-11-10",0.00619],["2026-11-11",0.00619],["2026-11-12",0.00619],["2026-11-13",0.00619],["2026-11-14",0.00619],["2026-11-15",0.00619],["2026-11-16",0.00619],["2026-11-17",0.00619],["2026-11-18",0.00619],["2026-11-19",0.00619],["2026-11-20",0.00619],["2026-11-21",0.00619],["2026-11-22",0.00619],["2026-11-23",0.00619],["2026-11-24",0.00619],["2026-11-25",0.00805],["2026-11-26",0.00805],["2026-11-27",0.00869],["2026-11-28",0.00869],["2026-11-29",0.00869],["2026-11-30",0.00869],["2026-12-01",0.00668],["2026-12-02",0.00668],["2026-12-03",0.00668],["2026-12-04",0.00668]],"epss30dChange":0.00049,"exploitUrls":["https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-9q5r-wfvf-rr7f"],"patchCommitUrls":["https://github.com/mlc-ai/xgrammar/commit/ced69c3ad2f8f61b516cc278a342e7c644383e27"],"ssvcExploitation":"poc","nvdStatus":"Analyzed","referencesCheckedAt":"2026-12-03T19:56:07.603Z","kevDateAdded":null,"advisoryAliases":["GHSA-9q5r-wfvf-rr7f"],"affectedPackagesSource":null,"affectedPackagesCheckedAt":null,"patchAvailable":true,"disclosureDate":"2025-09-05T21:10:06.000Z","fixReleasedAt":"2025-09-04T08:33:25.373Z","daysToFix":-1,"fixCheckedAt":"2026-12-04T06:04:48.180Z","capecIds":["CAPEC-130"],"crossRefCount":0,"attackSophistication":"trivial","impactType":["availability"],"aiComponentTargeted":"inference","llmSpecific":true,"classifierConfidence":0.9,"researchCategory":null,"atlasIds":["AML.T0029"],"openalexId":null,"openalexMatch":null,"openalexCheckedAt":null,"paperAuthors":null,"paperVenue":null,"paperVenueType":null,"paperYear":null,"paperDoi":null,"paperPublished":null,"paperOaUrl":null,"citedByCount":null,"codeUrls":null,"nvdFilled":null,"fixedVersions":["xgrammar@0.1.24"],"affectedPurls":["pkg:pypi/xgrammar"],"owaspLlmIds":["LLM10:2025"],"doi":null,"arxivId":null,"hasPublicExploit":true,"timeline":[{"event":"fix_released","date":"2025-09-04","source":"package_registry"},{"event":"published","date":"2025-09-05","source":"record_source"}],"provenance":{"fields":{"id":"pipeline","title":"source","summary":"model","solution":"model","labels":"model","sourceUrl":"source","publishedAt":"source","cveId":"source","cweIds":"source","cvssScore":"source","cvssSeverity":"source","severity":"source","attackType":"model","issueType":"source","affectedPackages":"source","affectedPackageNames":"source","affectedPackageRefs":"source","affectedVendors":"model","affectedVendorsRaw":"model","classifierModel":"pipeline","classifierPromptVersion":"pipeline","summaryPromptVersion":"pipeline","headline":"model","headlinePromptVersion":"pipeline","cvssVector":"source","attackVector":"source","attackComplexity":"source","privilegesRequired":"source","userInteraction":"source","exploitMaturity":"source","epssScore":"source","epssPercentile":"source","epssCheckedAt":"pipeline","epssHistory":"source","epss30dChange":"source","exploitUrls":"source","patchCommitUrls":"source","ssvcExploitation":"source","nvdStatus":"source","referencesCheckedAt":"pipeline","kevDateAdded":"source","advisoryAliases":"source","affectedPackagesSource":"pipeline","affectedPackagesCheckedAt":"pipeline","patchAvailable":"source","disclosureDate":"source","fixReleasedAt":"source","daysToFix":"source","fixCheckedAt":"pipeline","capecIds":"source","crossRefCount":"source","attackSophistication":"model","impactType":"model","aiComponentTargeted":"model","llmSpecific":"model","classifierConfidence":"model","atlasIds":"model","openalexId":"source","openalexMatch":"pipeline","openalexCheckedAt":"pipeline","paperAuthors":"source","paperVenue":"source","paperVenueType":"source","paperYear":"source","paperDoi":"source","paperPublished":"source","paperOaUrl":"source","citedByCount":"source","codeUrls":"source","nvdFilled":"pipeline","fixedVersions":"source","affectedPurls":"source","owaspLlmIds":"model","doi":"source","arxivId":"source","hasPublicExploit":"source","timeline":"source"},"model":{"classifier":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2"}},"fixes":[{"ecosystem":"pypi","name":"xgrammar","fixedVersion":"0.1.24","matchedVersion":"0.1.24","fixReleasedAt":"2025-09-04T08:33:25.373Z","daysToFix":-1,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-12-04T06:04:48.179Z"}]}}