PyPI: uv

CVE-2026-104843

Safety vulnerability ID: SFTY-20261005-02655

Affected versions of the `uv` package are vulnerable to Path Traversal due to wheel extraction on Windows not confining the paths of extracted files to the installation prefix. During wheel installation on Windows hosts, uv writes files at paths taken from the wheel archive without ensuring that they resolve inside the target environment, so a crafted archive entry can be written to a location outside the installation prefix. An attacker who gets a Windows user to install a malicious wheel with uv can place an executable outside the intended environment, including in a directory already on the user's `PATH`, where it can be run in place of a legitimate command and execute arbitrary code.

Created at: Oct 7, 2026Updated at: Oct 7, 2026

Overview

uv: Path traversal on Windows through wheel extraction

Advisory

uv – Path Traversal

Affected Package

Affecting uv package, versions>= 0.12.7, < 0.12.18

Also affects

---

How to Fix

Upgradeuvto0.12.18or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more