# CVE-2026-78681: NLTK before 3.10.3 Entity Expansion DoS via ElementTree

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-25T01:30:37.749Z
- Modified: 2026-10-12T21:10:00.227Z
- Also known as: GHSA-97qj-x29f-37w7, PYSEC-2026-3748
- Weaknesses: CWE-776
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- nltk nltk: before 3.10.3 (not affected: 3.10.3)
- nltk (PyPI): before 3.10.3

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-97qj-x29f-37w7> (exploit, evidence, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/nltk-before-entity-expansion-dos-via-elementtree> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-78681> (advisory)
- <https://github.com/nltk/nltk/commit/e91789c9a043296ad04912ce171c22776d45963b> (web)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/nltk/nltk/releases/tag/v3.10.3> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3748.yaml> (web)

## Sources

- CVE List: [CVE-2026-78681](https://www.cve.org/CVERecord?id=CVE-2026-78681), CVE Terms of Use, modified 2026-08-26
- GitHub Advisory Database: [GHSA-97qj-x29f-37w7](https://github.com/advisories/GHSA-97qj-x29f-37w7), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-78681](https://nvd.nist.gov/vuln/detail/CVE-2026-78681), Public domain, modified 2026-10-12
- PyPA Advisory Database: [PYSEC-2026-3748](https://osv.dev/vulnerability/PYSEC-2026-3748), CC-BY-4.0, modified 2026-09-02

---

Page: https://cve.day/CVE-2026-78681 · Whole record: https://cve.day/CVE-2026-78681.json · Rebuilt by cve.day 2026-11-25T22:59:35.102Z
