{"id":"CVE-2026-128137","aliases":["GHSA-g58v-j9g9-5gfg"],"title":"NLTK corpus-reader view methods bypass the scoped root sandbox via intermediate-directory symlinks","originalDescription":"NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.9.4 until 3.10.4, NLTK corpus-reader path pointers and view methods validate a requested relative path without consistently resolving intermediate directory symlinks against the reader's scoped root. A local attacker who can place such a symlink can make abspaths or words reach a readable file outside the corpus root and disclose its contents. On releases with pathsec enforcement, the file must remain inside a global NLTK allowed root; version 3.9.4 has enforcement disabled and permits a broader escape. This issue is fixed in version 3.10.4.","severity":{"cvss":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00224,"percentile":0.13906},"exploitDb":null},"affected":[{"ecosystem":"PyPI","name":"nltk","range":">= 3.9.4, < 3.10.4","fixed":"3.10.4"},{"ecosystem":"PyPI","name":"nltk","range":">=3.9.4, <3.10.4","fixed":"3.10.4"}],"references":[{"url":"https://github.com/nltk/nltk/security/advisories/GHSA-g58v-j9g9-5gfg","type":"x_refsource_CONFIRM"},{"url":"https://github.com/nltk/nltk/pull/3761","type":"x_refsource_MISC"},{"url":"https://github.com/nltk/nltk/commit/9f7cf06b4af4ca5c65381ed0abc17e989dc54400","type":"x_refsource_MISC"},{"url":"https://github.com/nltk/nltk/releases/tag/v3.10.4","type":"x_refsource_MISC"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128137","type":"other"},{"url":"https://github.com/advisories/GHSA-g58v-j9g9-5gfg","type":"other"},{"url":"https://github.com/nltk/nltk","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-19T21:47:03.323Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128137","license":"NVD terms of use","firstSeenAt":"2026-11-19T19:35:05.976Z"},{"name":"osv","at":"2026-11-20T01:01:54.957Z","url":"https://osv.dev/vulnerability/GHSA-g58v-j9g9-5gfg","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T00:29:22.362Z"},{"name":"ghsa","at":"2026-12-04T08:58:10.065Z","url":"https://github.com/advisories/GHSA-g58v-j9g9-5gfg","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T00:29:05.894Z"},{"name":"cvelistV5","at":"2026-11-19T22:17:44.598Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-128137","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T18:26:36.560Z"}],"firstSeenAt":"2026-11-19T18:26:36.560Z","publishedAt":"2026-11-19T18:02:15.149Z","modifiedAt":"2026-11-20T00:15:06.485Z"}