Inefficient regular expression complexity in Natural Language Toolkit - CVE-2026-54295
Published: August 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to inefficient regular expression complexity in the ReviewsCorpusReader FEATURES regex when parsing a crafted bracket-less review line. A remote attacker can supply a specially crafted reviews corpus line to cause a denial of service.
A single crafted line can hang the reviews(), features(), and sents() processing paths.