CVE-2026-33230: NLTK WordNet App Reflected XSS Vulnerability

nltk Updated 18 Mar 2026

Summary

18/03/2026
No i
Moderate
6.1

CVE-2026-33230: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in nltk. Affects nltk versions < 3.9.3. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Natural Language Toolkit (NLTK) is a powerful library in Python used for working with human language data (text). It provides easy-to-use interfaces to over 50 corpora and lexical resources, along with a suite of text processing libraries for classification, tokenization, stemming, tagging, parsing, and more. The NLTK WordNet App allows users to browse the WordNet lexical database through a web interface. However, it has a vulnerability that allows for reflected cross-site scripting (XSS) attacks, which can compromise the security of users running the application locally.

Vulnerability Detail

The vulnerability arises from improper neutralization of input during web page generation in the NLTK WordNet App. Specifically, the 'lookup_' route allows attacker-controlled data to be reflected into HTML without proper escaping. This can lead to arbitrary HTML/JavaScript being injected into the response page, enabling an attacker to execute scripts in the context of the user's browser. The vulnerability is exploitable due to the handling of base64-encoded pickle data, which can be manipulated to inject malicious scripts. This poses a risk to users who run the WordNet Browser server locally, as it can lead to unauthorized actions and data exposure.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid using the 'lookup_' route in the NLTK WordNet App until the package is updated. Additionally, consider running the application in a controlled environment where access is restricted to trusted users only.

Conclusion

The NLTK WordNet App has a reflected XSS vulnerability that can be exploited by attackers to execute scripts in the context of users' browsers. It is crucial for users to update their NLTK package to mitigate this risk and to be cautious when using the application until the update is applied.

See every vulnerability recorded for nltk →

Share this vulnerability

FAQ

CVE-2026-33230 is a vulnerability in the NLTK WordNet App that allows for reflected cross-site scripting (XSS) attacks.

Users running the NLTK WordNet App locally can be exposed to XSS attacks, allowing attackers to execute arbitrary scripts in their browsers.

You should update your NLTK package to the latest version that fixes the vulnerability. Use 'pip install --upgrade nltk' to do so.

Yes, you can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

The CVSS score of this vulnerability is 6.1, indicating a moderate level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for nltk.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback