Advisory

PYSEC-2026-3748

Also known as: CVE-2026-78681, GHSA-97qj-x29f-37w7

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-08-25 02:16 UTC
Modified
2026-09-02 09:00 UTC

Affected packages and fixes

nltk

PyPI · All systems

Affected

  • introduced 0, fixed 3.10.3 (ecosystem)

Fixed versions

3.10.3

Fix

  • Fixed version 3.10.3
    pip install --upgrade nltk==3.10.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences