CVE-2026-128139

Source
https://cve.org/CVERecord?id=CVE-2026-128139
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-128139.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-128139
Aliases
  • GHSA-j8g8-j4j7-8j54
Published
2026-11-19T17:39:20Z
Modified
2026-11-19T19:00:10Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-400",
        "CWE-407"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128139.json"
}
References

Affected packages

Git / github.com/nltk/nltk

Affected ranges

Type
GIT
Repo
https://github.com/nltk/nltk
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "3.6"
                },
                {
                    "fixed":  "3.10.4"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "9cacbb95d97eaac7debb30d6e7decbe74d2c635f"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v3.10.4",
            "range":  [
                {
                    "fixed":  "5c41fc04a45e95577a83f3914acda211a994be00"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

3.*
3.6
3.6.1
3.6.2
3.6.5
3.6.6
3.6.7
3.7
3.8
3.8.1
3.8.2
3.9
3.9.1
3.9.2
3.9.3
3.9.4
v.*
v.3.10.1
v3.*
v3.10.0
v3.10.0-rc1
v3.10.0-rc2
v3.10.1
v3.10.1-rc1
v3.10.1-rc2
v3.10.2
v3.10.2-rc1
v3.10.3
v3.10.3-rc1
v3.10.4-rc1
v3.9.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-128139.json"