Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. nltk
  4. ›
  5. CVE-2026-70626

CVE-2026-70626: NLTK: Symlink escape in CorpusReader allows arbitrary local file read outside the corpus root

September 8, 2026

nltk.corpus.reader.api.CorpusReader.open() can be used to read files outside the intended corpus root via a symlink placed inside that root. Although NLTK blocks absolute paths and .. traversal, the current boundary check is only lexical and does not account for symlink resolution. This leads to an arbitrary local file read / filesystem sandbox bypass for applications that rely on CorpusReader or FileSystemPathPointer to restrict file access.

References

  • github.com/advisories/GHSA-r6gq-whwq-mvg9
  • github.com/nltk/nltk/commit/1b0e519e2324bc1a273d56edee63e44d0ad85b48
  • github.com/nltk/nltk/pull/3522
  • github.com/nltk/nltk/releases/tag/3.9.4
  • github.com/nltk/nltk/security/advisories/GHSA-r6gq-whwq-mvg9
  • github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3732.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-70626
  • www.vulncheck.com/advisories/nltk-before-symlink-escape-via-corpusreader

Code Behaviors & Features

Detect and mitigate CVE-2026-70626 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.9.4

Fixed versions

  • 3.9.4

Solution

Upgrade to version 3.9.4 or above.

Impact 6.2 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

pypi/nltk/CVE-2026-70626.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:19:40 +0000.