Intel

AIKIDO-2026-982477

pip is vulnerable to Path Traversal

Path TraversalCVE-2026-13346 Published 3 days ago

53

Medium Risk

This Affects:

PYTHONpip
0.0.1 - 26.1.2
Fixed in 26.2.0
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.

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.

Background info

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

How to fix this

Upgrade the pip library to the patch version.