{"id":"CVE-2026-128137","summary":"NLTK corpus-reader view methods bypass the scoped root sandbox via intermediate-directory symlinks","details":"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.","aliases":["GHSA-g58v-j9g9-5gfg"],"modified":"2026-11-19T20:00:10.480436504Z","published":"2026-11-19T18:02:15.149Z","database_specific":{"cwe_ids":["CWE-59"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128137.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128137.json"},{"type":"FIX","url":"https://github.com/nltk/nltk/commit/9f7cf06b4af4ca5c65381ed0abc17e989dc54400"},{"type":"FIX","url":"https://github.com/nltk/nltk/pull/3761"},{"type":"WEB","url":"https://github.com/nltk/nltk/releases/tag/v3.10.4"},{"type":"ADVISORY","url":"https://github.com/nltk/nltk/security/advisories/GHSA-g58v-j9g9-5gfg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128137"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nltk/nltk","events":[{"introduced":"ad9c96ba00a16923ffe917eacf63f1707bfa2d08"},{"fixed":"5c41fc04a45e95577a83f3914acda211a994be00"},{"fixed":"9f7cf06b4af4ca5c65381ed0abc17e989dc54400"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"3.9.4"},{"fixed":"3.10.4"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"9f7cf06b4af4ca5c65381ed0abc17e989dc54400"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"5c41fc04a45e95577a83f3914acda211a994be00"}],"source":"REFERENCES_TAG","original_tag":"v3.10.4"}]}}],"versions":["v3.10.4-rc1","v3.10.3-rc1","v3.10.3","v3.10.2-rc1","v3.10.2","v3.10.1","v.3.10.1","v3.10.1-rc2","v3.10.0-rc2","v3.10.0","v3.10.1-rc1","v3.10.0-rc1","3.9.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-128137.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}