PyPI: nltk

CVE-2021-3828

Safety vulnerability ID: SFTY-20210927-85995

Safety legacy ID: pyup.io-54696

Nltk before 3.6.4 is vulnerable to Inefficient Regular Expression Complexity.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

NLTK Vulnerable to REDoS

Advisory

Nltk before 3.6.4 is vulnerable to Inefficient Regular Expression Complexity.

Affected Package

Affecting nltk package, versions>=0,<3.6.4

Also affects

---

How to Fix

Upgradenltkto3.6.4or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more