Intel

AIKIDO-2026-982477

pip is vulnerable to Path Traversal

CVE-2026-13346Published Jul 31, 2026
July 31, 2026

53

CVE Score

Medium

Path Traversal

Are you affected? Scan for Free

TL;DR

pip decodes the URL path twice when determining a link's filename from a package index. A package index can supply a doubly-encoded URL whose decoded filename is treated as an absolute or traversing path, so downloaded files are written to arbitrary locations on disk, even when installing wheels. This lets a malicious index place files outside the intended download or install directory. The fix stops the redundant decoding and treats the derived filename as a single path component.

How do I fix this?

Upgrade the pip 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 you download or install packages from an untrusted package index.

Package

Versions

0.0.1 - 26.1.2

Fixed in 26.2.0

Background info

pip is vulnerable to Path Traversal in versions 0.0.1 - 26.1.2.

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