CVE-2026-126304
NLTK from 3.10.0 before 3.10.4 contains a symlink escape …
NLTK from 3.10.0 before 3.10.4 contains a symlink escape vulnerability in YCOECorpusReader that allows attackers to read files outside the corpus root by planting psd or pos directory symlinks. Attackers controlling a YCOE corpus can make parsed_sents() and tagged_words() return file content from other corpora or temporary files within the NLTK data sandbox.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/nltk/nltk/security/advisories/GHSA-qg35-44qx-7vrr
- www.vulncheck.com/advisories/nltk-3.10.0-before-3.10.4-symlink-escape-in-ycoecorpusreader
- nvd.nist.gov/vuln/detail/CVE-2026-126304
- github.com/nltk/nltk/pull/3888
- github.com/nltk/nltk/commit/2c563b13f9dce7c15eefd4b03463e1b69b64f1f3
- github.com/nltk/nltk/commit/68434c0427f8d296f3adfddb518525038d1f7bfa
- github.com/nltk/nltk/releases/tag/v3.10.4
- github.com/advisories/GHSA-qg35-44qx-7vrr
- nvd.nist.gov/vuln/detail/CVE-2026-126304
- cve.org/CVERecord?id=CVE-2026-126304
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.