Path traversal in setuptools - #VU162973
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated attacker to create a fixed-content __init__.py outside the intended installation directory with the installing process's permissions.
The vulnerability exists due to unchecked absolute Windows paths in wheel namespace_packages.txt metadata during setuptools' legacy wheel installation. An unauthenticated attacker can supply a crafted wheel for a victim to install through this mechanism, creating the file in an existing directory writable by the installer where the file does not already exist.