pip is vulnerable to Path Traversal
53
Medium Risk
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.
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.
pip is vulnerable to Path Traversal in versions 0.0.1 - 26.1.2.
Upgrade the pip library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant