CVE-2026-78681: NLTK · Entity-expansion DoS (billion laughs) via remaining raw ElementTree parses
Affects gptlineSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 1.0.8_23 soon.
Data as of 23 Nov 2026, 21:15 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.0.8_23
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 2 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade gptline to 1.0.8_23.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewgptlinepkg:brew/gptlineOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available that routes all affected XML parsing through the nltk.xmlsec module, which forbids entity declarations and uses defusedxml or a fallback expat pre-scan to prevent entity expansion attacks. Users should upgrade to the fixed version >=1.0.8_23. No additional action is required if the patch is applied.
Description
NLTK versions from 1.0.8 up to but not including 1.0.8_23 contain a denial-of-service vulnerability due to unsafe XML entity expansion in several XML parsing functions that use Python's xml.etree.ElementTree directly. Crafted XML documents with nested entity declarations can cause exponential memory amplification (billion laughs attack), leading to high memory consumption and potential service disruption. The vulnerability is mitigated by routing XML parsing through a new nltk.xmlsec module that forbids entity declarations, using defusedxml or a fallback expat pre-scan. A patch is available to address this issue.
References
- github.com/nltk/nltk/security/advisories/GHSA-97qj-x29f-37w7 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-78681 (opens in a new tab)
- vulncheck.com/advisories/nltk-before-entity-expansion-dos-via-elementtree (opens in a new tab)
- github.com/nltk/nltk/commit/e91789c9a043296ad04912ce171c22776d45963b (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- github.com/nltk/nltk/releases/tag/v3.10.3 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3748.yaml (opens in a new tab)