The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33230

CVE-2026-33230: NLTK WordNet Browser XSS Vulnerability

CVE-2026-33230 is a reflected cross-site scripting flaw in NLTK's WordNet Browser that allows attackers to inject malicious scripts through crafted URLs. This article covers technical details, affected versions, and mitigation.

Published: March 27, 2026

CVE-2026-33230 Overview

A reflected Cross-Site Scripting (XSS) vulnerability has been discovered in NLTK (Natural Language Toolkit), a widely-used suite of open source Python modules supporting research and development in Natural Language Processing. The vulnerability exists in the nltk.app.wordnet_app module, specifically within the lookup_... route handler, where attacker-controlled input is reflected into HTML responses without proper sanitization.

Critical Impact

Users running the local WordNet Browser server are vulnerable to arbitrary script execution in their browser, potentially leading to session hijacking, credential theft, or malicious actions performed in the context of the application.

Affected Products

  • NLTK versions 3.9.3 and prior
  • nltk.app.wordnet_app module
  • WordNet Browser local server component

Discovery Timeline

  • 2026-03-20 - CVE-2026-33230 published to NVD
  • 2026-03-23 - Last updated in NVD database

Technical Details for CVE-2026-33230

Vulnerability Analysis

This reflected XSS vulnerability occurs in the WordNet Browser application, a component of NLTK that provides a local web-based interface for exploring the WordNet lexical database. The lookup_... route is designed to accept word queries from users and display dictionary definitions. However, when a searched word is not found in the dictionary, the application reflects the user-supplied input directly into the HTML response without applying proper output encoding.

The vulnerable code path triggers when a user submits a lookup request containing malicious JavaScript or HTML content. Since the word parameter is interpolated directly into the error message using Python's string formatting (%s), an attacker can craft a URL that injects arbitrary code into the rendered page.

Root Cause

The root cause is missing output encoding in the wordnet_app.py module. When generating the error message for words not found in the dictionary, the code directly interpolates user input into an HTML string without calling html.escape() to sanitize special characters. This allows attackers to break out of the text context and inject script tags or event handlers.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious URL containing JavaScript payload in the lookup route. When a victim clicks this link while running the local WordNet Browser server, the malicious script executes in the context of the victim's browser session with access to the application origin.

python
# Vulnerable code (before patch)
# Source: https://github.com/nltk/nltk/commit/1c3f799607eeb088cab2491dcf806ae83c29ad8f

                except KeyError:
                    pass
    if not body:
-        body = "The word or words '%s' were not found in the dictionary." % word
+        body = "The word or words '%s' were not found in the dictionary." % html.escape(
+            word
+        )
    return body, word

The fix applies html.escape() to the user-supplied word parameter before including it in the HTML response, preventing XSS payload execution.

Detection Methods for CVE-2026-33230

Indicators of Compromise

  • Unusual URL patterns in web server logs containing <script>, javascript:, or HTML event handlers in the lookup route
  • Requests to the WordNet Browser containing encoded payloads such as %3Cscript%3E or %22onload%3D
  • Client-side security tools reporting XSS attempts originating from the NLTK WordNet Browser application

Detection Strategies

  • Monitor HTTP access logs for requests containing suspicious characters like <, >, ", or ' in URL parameters
  • Implement Web Application Firewall (WAF) rules to detect and block reflected XSS patterns targeting the WordNet Browser
  • Deploy browser-based XSS detection extensions to identify malicious script injection attempts

Monitoring Recommendations

  • Enable Content Security Policy (CSP) headers to restrict script execution sources and mitigate XSS impact
  • Configure logging to capture full request URLs for forensic analysis of potential attack attempts
  • Review network traffic for outbound connections initiated by scripts in the WordNet Browser context

How to Mitigate CVE-2026-33230

Immediate Actions Required

  • Upgrade NLTK to a version containing commit 1c3f799607eeb088cab2491dcf806ae83c29ad8f or later
  • Avoid exposing the WordNet Browser server to untrusted networks or users
  • Restrict access to the local WordNet Browser server to localhost only until patched

Patch Information

The NLTK development team has addressed this vulnerability through commits that add proper HTML escaping to user-supplied input. The fix applies html.escape() to the word parameter before including it in error messages. Users should update to the latest version of NLTK to receive this security fix.

  • GitHub Commit Change
  • GitHub Commit Fix
  • GitHub Security Advisory GHSA-gfwx-w7gr-fvh7

Workarounds

  • Disable the WordNet Browser application (nltk.app.wordnet_app) if not actively required
  • Run the WordNet Browser server only on localhost and avoid accessing it through links from untrusted sources
  • Implement a reverse proxy with XSS filtering capabilities in front of the WordNet Browser server
bash
# Configuration example - Restrict WordNet Browser to localhost only
# When starting the WordNet Browser, ensure it binds only to localhost
python -c "import nltk; nltk.app.wordnet_app.app.run(host='127.0.0.1', port=8000)"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechNltk

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Commit Fix

  • GitHub Security Advisory GHSA-gfwx-w7gr-fvh7
  • Related CVEs
  • CVE-2026-33236: Nltk Path Traversal Vulnerability

  • CVE-2026-33231: NLTK WordNet Browser DoS Vulnerability

  • CVE-2026-0846: NLTK Path Traversal Vulnerability

  • CVE-2026-0848: NLTK StanfordSegmenter RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English