# CVE-2026-33230: nltk Vulnerable to Cross-site Scripting

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-18T20:23:33.000Z
- Modified: 2026-09-10T03:50:39.207Z
- Also known as: GHSA-gfwx-w7gr-fvh7, PYSEC-2026-2235
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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_<payload>` 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.

(As written by CVE List.)

## Affected

- nltk nltk: <= 3.9.3; up to 3.9.3
- nltk (PyPI): before 3.9.4

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-gfwx-w7gr-fvh7> (exploit, evidence, vendor-advisory, web)
- <https://github.com/nltk/nltk/commit/1c3f799607eeb088cab2491dcf806ae83c29ad8f> (fix, patch, web)
- <https://github.com/nltk/nltk/commit/40d0bc1d484a3458d6a63ecb5ba4957ab16ba14e> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33230> (advisory)
- <https://github.com/nltk/nltk> (package)

## Sources

- CVE List: [CVE-2026-33230](https://www.cve.org/CVERecord?id=CVE-2026-33230), CVE Terms of Use, modified 2026-03-24
- GitHub Advisory Database: [GHSA-gfwx-w7gr-fvh7](https://github.com/advisories/GHSA-gfwx-w7gr-fvh7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33230](https://nvd.nist.gov/vuln/detail/CVE-2026-33230), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2235](https://osv.dev/vulnerability/PYSEC-2026-2235), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-33230 · Whole record: https://cve.day/CVE-2026-33230.json · Rebuilt by cve.day 2026-11-25T22:59:16.366Z
