Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-126301 EUVD-2026-125220GHSA-gpwc-27cw-rh9rGHSA-x4p7-2mv3-x7px

NLTK: Quadratic CPU exhaustion in LegalitySyllableTokenizer.tokenize via unguarded onset reversal loop

Published Nov 13, 2026 · Assigned by VulnCheck

Description

NLTK from 3.6 before 3.10.4 contains an algorithmic complexity vulnerability in LegalitySyllableTokenizer.tokenize that allows remote attackers to exhaust CPU by supplying long all-vowel tokens. Attackers can submit a token such as a long run of vowels, causing the unguarded onset reversal loop to perform quadratic work and deny service to syllabification components.

Affected products

VendorProductAffectedFixed
nltk nltk 3.6 <3.10.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nltk >= 3.6, < 3.10.4 3.10.4 GHSA-gpwc-27cw-rh9r

References