{"id":"CVE-2026-128139","summary":"NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service","details":"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.","aliases":["GHSA-j8g8-j4j7-8j54"],"modified":"2026-11-19T19:00:10.275435085Z","published":"2026-11-19T17:39:20.222Z","database_specific":{"cwe_ids":["CWE-400","CWE-407"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128139.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128139.json"},{"type":"FIX","url":"https://github.com/nltk/nltk/commit/9cacbb95d97eaac7debb30d6e7decbe74d2c635f"},{"type":"WEB","url":"https://github.com/nltk/nltk/releases/tag/v3.10.4"},{"type":"ADVISORY","url":"https://github.com/nltk/nltk/security/advisories/GHSA-j8g8-j4j7-8j54"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128139"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nltk/nltk","events":[{"introduced":"24d6e0d4123a5cfea3ede7dbdfe77fe0ec54b83c"},{"fixed":"5c41fc04a45e95577a83f3914acda211a994be00"},{"fixed":"9cacbb95d97eaac7debb30d6e7decbe74d2c635f"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"3.6"},{"fixed":"3.10.4"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"9cacbb95d97eaac7debb30d6e7decbe74d2c635f"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"v3.10.4","range":[{"fixed":"5c41fc04a45e95577a83f3914acda211a994be00"}]}]}}],"versions":["v3.10.4-rc1","v3.10.3-rc1","v3.10.3","v3.10.2-rc1","v3.10.2","v3.10.1","v.3.10.1","v3.10.1-rc2","v3.10.0-rc2","v3.10.0","v3.10.1-rc1","v3.10.0-rc1","3.9.4","3.9.3","v3.9.2","3.9.2","3.9.1","3.9","3.8.2","3.8.1","3.8","3.7","3.6.7","3.6.6","3.6.5","3.6.2","3.6.1","3.6"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-128139.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}