CVE-2026-78681
published high CVSS 4.0 · 8.7NLTK before 3.10.3 Entity Expansion DoS via ElementTree
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nltk | — | nltk0 to < 3.10.3 (affected · semver) · 3.10.3 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
NLTK versions before 3.10.3 use xml.etree.ElementTree to parse XML in multiple modules, which honors entity declarations in document DTDs. Attackers can craft XML payloads with nested entity declarations that expand from hundreds of bytes to megabytes in memory, causing denial of service.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nltk | nltk | 0 to < 3.10.3 (affected · semver)3.10.3 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-776 Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
References
2- GitHub Security Advisory (GHSA-97qj-x29f-37w7) https://github.com/nltk/nltk/security/advisories/GHSA-97qj-x29f-37w7
- VulnCheck Advisory: NLTK before 3.10.3 Entity Expansion DoS via ElementTree https://www.vulncheck.com/advisories/nltk-before-entity-expansion-dos-via-elementtree
Provider assertions
2VulnCheck · cna
NLTK before 3.10.3 Entity Expansion DoS via ElementTree
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 64d0475158a2e858f1570768f20272e598a2133733c0b8c84f369bffd4e8960e
- Ingested
- 23 Sep 2026, 09:33:02 UTC
- Source record
- Official CVE record