Gptline: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in nltk (CVE-2026-33230)
NLTK's WordNet Browser web UI contains a reflected cross-site scripting (XSS) vulnerability in the lookup route. The issue arises because attacker-controlled input is reflected into the HTML response without proper escaping, allowing injection of arbitrary JavaScript. This affects users running the local or self-hosted WordNet Browser HTTP service. Exploitation requires convincing a user to open a crafted URL, leading to script execution within the browser context of the application.
AI Analysis
Technical Summary
The vulnerability exists in the nltk.app.wordnet_app module, specifically in the lookup_ route where the 'word' parameter is derived from attacker-controlled base64-encoded pickle data decoded by Reference.decode(). This 'word' is reflected directly into the HTML response without escaping, unlike the search route which properly escapes input. Because the server listens on all interfaces by default, an attacker can craft a URL that injects arbitrary HTML/JavaScript into the response page, resulting in reflected XSS. The issue was demonstrated with a proof-of-concept payload that injects a script alert.
Potential Impact
An attacker who can trick a user into opening a maliciously crafted lookup_ URL can execute arbitrary JavaScript in the browser context of the local WordNet Browser application. This can lead to manipulation of page content, execution of same-origin requests within the app, and potentially triggering UI actions. The impact is limited to users running the local or self-hosted WordNet Browser service and opening attacker-controlled links.
Mitigation Recommendations
A patch is available for this vulnerability. Users should update to a fixed version of the nltk package that properly escapes user input in the lookup_ route. Until patched, users should avoid opening untrusted lookup_ URLs in the WordNet Browser application.
Gptline: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in nltk (CVE-2026-33230)
Description
NLTK's WordNet Browser web UI contains a reflected cross-site scripting (XSS) vulnerability in the lookup route. The issue arises because attacker-controlled input is reflected into the HTML response without proper escaping, allowing injection of arbitrary JavaScript. This affects users running the local or self-hosted WordNet Browser HTTP service. Exploitation requires convincing a user to open a crafted URL, leading to script execution within the browser context of the application.
CVSS v3.1
Score 6.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the nltk.app.wordnet_app module, specifically in the lookup_ route where the 'word' parameter is derived from attacker-controlled base64-encoded pickle data decoded by Reference.decode(). This 'word' is reflected directly into the HTML response without escaping, unlike the search route which properly escapes input. Because the server listens on all interfaces by default, an attacker can craft a URL that injects arbitrary HTML/JavaScript into the response page, resulting in reflected XSS. The issue was demonstrated with a proof-of-concept payload that injects a script alert.
Potential Impact
An attacker who can trick a user into opening a maliciously crafted lookup_ URL can execute arbitrary JavaScript in the browser context of the local WordNet Browser application. This can lead to manipulation of page content, execution of same-origin requests within the app, and potentially triggering UI actions. The impact is limited to users running the local or self-hosted WordNet Browser service and opening attacker-controlled links.
Mitigation Recommendations
A patch is available for this vulnerability. Users should update to a fixed version of the nltk package that properly escapes user input in the lookup_ route. Until patched, users should avoid opening untrusted lookup_ URLs in the WordNet Browser application.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-gptline-CVE-2026-33230
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6aac8e5a55bf5e2cf5491afb
Added to database: 09/18/2026, 01:05:30 UTC
Last enriched: 09/18/2026, 01:51:47 UTC
Last updated: 09/18/2026, 02:06:53 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.