PyPI: nltk

CVE-2026-33231

Safety vulnerability ID: SFTY-20260319-86830

Safety legacy ID: pyup.io-89826

Affected versions of the nltk package are vulnerable to Denial of Service (DoS) due to missing authentication on a shutdown function in the WordNet Browser HTTP server. In nltk.app.wordnet_app, HTTPServer(("", port), MyServerHandler) listens on all interfaces by default, and the request handler checks whether the decoded path equals SHUTDOWN THE SERVER; when server_mode=False in the default runBrowser=True mode, that path triggers os._exit(0) and immediately terminates the process.

Created at: Apr 25, 2026Updated at: Apr 25, 2026

Overview

Unauthenticated remote shutdown in nltk.app.wordnet_app

Advisory

Affected versions of the nltk package are vulnerable to Denial of Service (DoS) due to missing authentication on a shutdown function in the WordNet Browser HTTP server. In nltk.app.wordnet_app, HTTPServer(("", port), MyServerHandler) listens on all interfaces by default, and the request handler checks whether the decoded path equals SHUTDOWN THE SERVER; when server_mode=False in the default runBrowser=True mode, that path triggers os._exit(0) and immediately terminates the process.

Affected Package

Affecting nltk package, versions
<=3.9.3

Also affects

---

How to Fix

Upgrade
nltk
to
3.9.4
or 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