NLTK versions before 3.10.0 contain a path traversal vulnerability in FramenetCorpusReader and NKJPCorpusReader that allows attackers to parse XML files outside

PYSEC-2026-3728
HIGH 8.2OSV

At a glance

Source
OSV
Published
Updated
CVE
CVE-2026-62385
Aliases
GHSA-568f-pv23-39p4
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVE severity
HIGH 8.2 · CVE-2026-62385

Description

NLTK versions before 3.10.0 contain a path traversal vulnerability in FramenetCorpusReader and NKJPCorpusReader that allows attackers to parse XML files outside the corpus root by supplying unsafe selectors or poisoned index state. Attackers can exploit frame_by_name, doc, lu, and header methods with crafted parameters to read arbitrary XML files accessible to the application.

References

Affected packages

PackageVersions
PyPI · nltkintroduced 0, fixed 3.10.0

Sources

SourceLicence
OSV.devCC-BY 4.0 — PyPA Advisory Database