Intel

AIKIDO-2026-794740

nltk is vulnerable to Improper Link Resolution Before File Access

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 5, 2026
August 5, 2026

52

CVE Score

Medium

Improper Link Resolution Before File Access

Are you affected? Scan for Free

TL;DR

FramenetCorpusReader and IPIPANCorpusReader open files reached through caller- or corpus-index-supplied names without resolving symbolic links first. A symlink planted inside the corpus directory under a name that contains no path-traversal characters is silently followed, so the reader can open a file located anywhere on the filesystem the process can reach. The fix resolves links before opening corpus files and keeps reads confined to the intended corpus root.

How do I fix this?

Upgrade the nltk library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application uses NLTK's FrameNet or IPI PAN corpus readers on a corpus directory where an untrusted party can place a symbolic link.

Package

Versions

2.0.1 - 3.10.1

Fixed in 3.10.2

Background info

nltk is vulnerable to Improper Link Resolution Before File Access in versions 2.0.1 - 3.10.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea