Skip to content
Heist/ feed
Back to feed
Medium

nltk Vulnerable to Cross-site Scripting

Type: advisorySources: OSV

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. In versions 3.9.3 and prior, `nltk.app.wordnet_app` contains a reflected cross-site scripting issue in the `lookup_...` route. A crafted `lookup_` URL can inject arbitrary HTML/JavaScript into the response page because attacker-controlled `word` data is reflected into HTML without escaping. This impacts users running the local WordNet Browser server and can lead to script execution in the browser origin of that application. Commit 1c3f799607eeb088cab2491dcf806ae83c29ad8f fixes the issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-33230
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:00 UTC · Revision 1

Source evidence

nltk Vulnerable to Cross-site Scripting

core-osv · Original source

Published 20 Mar 2026, 22:43 UTC

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. In versions 3.9.3 and prior, `nltk.app.wordnet_app` contains a reflected cross-site scripting issue in the `lookup_...` route. A crafted `lookup_` URL can inject arbitrary HTML/JavaScript into the response page because attacker-controlled `word` data is reflected into HTML without escaping. This impacts users running the local WordNet Browser server and can lead to script execution in the browser origin of that application. Commit 1c3f799607eeb088cab2491dcf806ae83c29ad8f fixes the issue.

osv:CVE-2026-33230
Complete source record
{
  "id": "32686ba2174f33cf8be5e6b39d633341f729cdc36d2af2313f4b7968921cbdfa",
  "url": "https://osv.dev/vulnerability/CVE-2026-33230",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "nltk Vulnerable to Cross-site Scripting",
    "summary": "NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. In versions 3.9.3 and prior, `nltk.app.wordnet_app` contains a reflected cross-site scripting issue in the `lookup_...` route. A crafted `lookup_` URL can inject arbitrary HTML/JavaScript into the response page because attacker-controlled `word` data is reflected into HTML without escaping. This impacts users running the local WordNet Browser server and can lead to script execution in the browser origin of that application. Commit 1c3f799607eeb088cab2491dcf806ae83c29ad8f fixes the issue.",
    "evidence": "osv:CVE-2026-33230",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-33230",
      "aliases": [
        "CVE-2026-33230",
        "GHSA-gfwx-w7gr-fvh7",
        "PYSEC-2026-2235"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/nltk/nltk",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1c3f799607eeb088cab2491dcf806ae83c29ad8f"
                },
                {
                  "fixed": "40d0bc1d484a3458d6a63ecb5ba4957ab16ba14e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.9.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1c3f799607eeb088cab2491dcf806ae83c29ad8f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "40d0bc1d484a3458d6a63ecb5ba4957ab16ba14e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.9.3",
            "v3.9.2",
            "3.9.2",
            "3.9.1",
            "3.9",
            "3.8.2",
            "3.8.1",
            "3.8",
            "3.7",
            "3.6.7",
            "3.6.6",
            "3.6.5",
            "3.6.2",
            "3.6.1",
            "3.6",
            "3.5",
            "3.5b1",
            "3.4.4",
            "3.4.3",
            "3.4.1",
            "3.4",
            "3.3",
            "3.2.5",
            "3.2.4",
            "3.2.3",
            "3.2.2",
            "3.2.1",
            "3.2",
            "3.1",
            "3.0.5",
            "3.0.4",
            "3.0.3",
            "3.0.2",
            "3.0.0b1",
            "3.0a4",
            "2.0.1rc4",
            "2.0.1rc3",
            "2.0.1rc2",
            "2.0.1rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33230.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:53.063935325Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33230.json",
        "https://github.com/nltk/nltk/security/advisories/GHSA-gfwx-w7gr-fvh7",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-33230",
        "https://github.com/nltk/nltk/commit/1c3f799607eeb088cab2491dcf806ae83c29ad8f",
        "https://github.com/nltk/nltk/commit/40d0bc1d484a3458d6a63ecb5ba4957ab16ba14e"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33230.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-33230",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521581,
  "published_at": "2026-03-20T22:43:39.621+00:00"
}