CVE-2026-78681
Received Received - Intake

XML Entity Expansion DoS in NLTK

Vulnerability report for CVE-2026-78681, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-25

Last updated on: 2026-08-25

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-25
Last Modified
2026-08-25
Generated
2026-08-25
AI Q&A
2026-08-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
nltk nltk to 3.10.3 (exc)
nltk nltk 3.10.2

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-776 The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-78681 is an entity-expansion denial-of-service (DoS) vulnerability in NLTK versions before 3.10.3. It occurs because NLTK uses xml.etree.ElementTree to parse XML, which honors entity declarations in document DTDs. Attackers can craft XML payloads with nested entity declarations that expand exponentially in memory, consuming resources and causing a DoS.

Detection Guidance

To detect this vulnerability, check if your system uses NLTK versions before 3.10.3. Run: pip show nltk or pip list | grep nltk. If the version is below 3.10.3, the system is vulnerable. Additionally, monitor for unusual memory consumption during XML parsing operations.

Impact Analysis

This vulnerability can impact you by allowing attackers to send crafted XML payloads that consume excessive memory, leading to system slowdowns or crashes. If your application processes XML using NLTK, it may become unresponsive or fail due to resource exhaustion.

Compliance Impact

This vulnerability primarily causes denial-of-service conditions by consuming excessive memory through XML entity expansion. It does not directly lead to data breaches or unauthorized access, so its impact on compliance like GDPR or HIPAA is likely minimal unless service disruption affects data availability or processing.

Mitigation Strategies

Upgrade NLTK to version 3.10.3 or later immediately. Use pip install --upgrade nltk. If upgrading is not possible, implement input validation for XML files and disable entity expansion in XML parsers. Consider using the new nltk.xmlsec module for secure XML parsing.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-78681. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart