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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-59"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126304.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "3.10.0"
},
{
"fixed": "3.10.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "3.10.0"
},
{
"fixed": "3.10.4"
}
],
"source": "DESCRIPTION"
}
]
}