{"id":"CVE-2026-128139","published":"2026-11-19T17:39:20Z","modified":"2026-11-20T21:14:46Z","title":"NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service","vendor":"nltk","product":"nltk","tier":"tail","description":{"text":"NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.6 to 3.10.3, XMLCorpusView._read_xml_fragment accumulates 1 KiB blocks and repeatedly applies whole-buffer XML validation while a comment or CDATA terminator remains ahead. A large comment in an attacker-controlled corpus file causes quadratic CPU consumption through documented XML corpus readers across the affected range. On 3.6 and 3.9.2, a large CDATA section incurs the quadratic scan before rejection, while on 3.10.3 both comment and CDATA documents are read successfully. This vulnerability is fixed in 3.10.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0051,"percentile":0.44358,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/nltk/nltk/security/advisories/GHSA-j8g8-j4j7-8j54","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nltk/nltk/commit/9cacbb95d97eaac7debb30d6e7decbe74d2c635f","tags":["x_refsource_MISC"]},{"url":"https://github.com/nltk/nltk/releases/tag/v3.10.4","tags":["x_refsource_MISC"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":8.87},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-23","earliestUrl":"https://github.com/googlesky/CVE-2026-128139","repos":[{"name":"googlesky/CVE-2026-128139","url":"https://github.com/googlesky/CVE-2026-128139","stars":0,"created":"2026-11-23"}]},"first":{"date":"2026-11-23","source":"PoC-in-GitHub","url":"https://github.com/googlesky/CVE-2026-128139"},"provenance":"source"},"vendorSlug":"nltk","affectedVersions":[{"vendor":"nltk","product":"nltk","versions":[">= 3.6, < 3.10.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-20T21:14:38.048344Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nltk","vulnerableRanges":[">=3.6, <3.10.4"],"patched":["3.10.4"],"from":["GHSA-j8g8-j4j7-8j54"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-130433","exploited":false,"provenance":"source"}}