{"cve":"CVE-2025-58446","nvd":{"published":"2025-09-06T19:15:38.733","modified":"2026-06-17T09:44:28.353","status":"Analyzed","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 (>100k characters) at very low rates, and can be used for DOS of model providers. This issue is fixed in version 0.1.24.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":6.9},"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-770"],"references":["https://github.com/mlc-ai/xgrammar/commit/ced69c3ad2f8f61b516cc278a342e7c644383e27","https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-9q5r-wfvf-rr7f"],"products":["mlc-ai:xgrammar"],"source":"nvd","synced_at":"2026-10-19T22:08:41.295252406+00:00"},"epss":{"cve":"CVE-2025-58446","score":0.00619,"percentile":0.49656,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9q5r-wfvf-rr7f","url":"https://osv.dev/vulnerability/GHSA-9q5r-wfvf-rr7f","summary":"xgrammar vulnerable to denial of service by huge enum grammar","modified":"2026-09-10T03:50:28.281780833Z","packages":[{"ecosystem":"PyPI","name":"xgrammar","purl":"pkg:pypi/xgrammar","ranges":[">=0.1.23 <0.1.24"],"fixed":["0.1.24"]}]},{"id":"PYSEC-2026-2055","url":"https://osv.dev/vulnerability/PYSEC-2026-2055","summary":"xgrammar vulnerable to denial of service by huge enum grammar","modified":"2026-07-07T17:48:17.628474247Z","packages":[{"ecosystem":"PyPI","name":"xgrammar","purl":"pkg:pypi/xgrammar","ranges":[">=0.1.23 <0.1.24"],"fixed":["0.1.24"]}]}],"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."]}