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

Published Aug 25, 2026
·
Updated

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.

Affected Software

1 affected component
NLTK<3.10.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade NLTK to a version that resolves this vulnerability.

    Fixed in 3.10.3

Event History

Aug 25, 2026
CVE Published
via MITRE·01:30 AM
Data Sourced
via MITRE·01:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this denial-of-service issue?

Applications using NLTK versions earlier than 3.10.3 are exposed when they parse attacker-controlled XML through affected NLTK modules. The vulnerability is remotely reachable and requires no attacker privileges or user interaction.

2

What does an attacker need to exploit it?

An attacker needs to supply a crafted XML document containing a DTD with nested entity declarations. Element expansion can grow a small input into megabytes of in-memory data, causing a denial of service.

3

Is confidentiality or data integrity affected?

The provided severity vector indicates impact to availability only. It does not indicate confidentiality or integrity impact.

4

What is the available remediation?

Upgrade NLTK to version 3.10.3 or later. The affected range is NLTK versions before 3.10.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203