CVE-2026-129224

GHSA-3h95-x772-4765 · published 19 Nov 2026 · updated 20 Nov 2026

NLTK: Uncontrolled recursion in CCG lexicon parser causes denial of service via deeply nested category input

5.3MediumCVSS 5.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in nltk 3.10.4.

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Prior to 3.10.4, the CCG lexicon parser's matchBrackets and augParseCategory functions recursively process nested parenthesized categories without a depth bound. An attacker-controlled lexicon string with excessive nesting can raise RecursionError through nltk.ccg.lexicon.fromstring and terminate the parse operation or request worker. This issue is fixed in version 3.10.4.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
nltk<3.10.4
pypi: nltk<3.10.4, <=3.10.33.10.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in nltk (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-129224 severity on Zeptric[![CVE-2026-129224](https://zeptric.io/badge/cve/CVE-2026-129224.svg)](https://zeptric.io/cve/CVE-2026-129224)