{"id":"CVE-2026-128139","aliases":["GHSA-j8g8-j4j7-8j54"],"title":"NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service","originalDescription":"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.","severity":{"cvss":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00532,"percentile":0.46482},"exploitDb":null},"affected":[{"ecosystem":"PyPI","name":"nltk","range":">= 3.6, <= 3.10.3","fixed":"3.10.4"},{"ecosystem":"PyPI","name":"nltk","range":">=3.6, <3.10.4","fixed":"3.10.4"}],"references":[{"url":"https://github.com/nltk/nltk/security/advisories/GHSA-j8g8-j4j7-8j54","type":"x_refsource_CONFIRM"},{"url":"https://github.com/nltk/nltk/commit/9cacbb95d97eaac7debb30d6e7decbe74d2c635f","type":"x_refsource_MISC"},{"url":"https://github.com/nltk/nltk/releases/tag/v3.10.4","type":"x_refsource_MISC"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128139","type":"other"},{"url":"https://github.com/advisories/GHSA-j8g8-j4j7-8j54","type":"other"},{"url":"https://github.com/nltk/nltk","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128139.json","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-20T22:28:15.407Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128139","license":"NVD terms of use","firstSeenAt":"2026-11-19T18:29:03.102Z"},{"name":"osv","at":"2026-11-21T00:07:43.176Z","url":"https://osv.dev/vulnerability/CVE-2026-128139","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T00:29:27.177Z"},{"name":"ghsa","at":"2026-12-04T08:58:10.072Z","url":"https://github.com/advisories/GHSA-j8g8-j4j7-8j54","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T23:55:58.622Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:14.499Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-128139","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T17:53:36.085Z"}],"firstSeenAt":"2026-11-19T17:53:36.085Z","publishedAt":"2026-11-19T17:39:20.222Z","modifiedAt":"2026-11-20T22:45:21.471Z"}