VDB
Sign up
MEDIUM5.9

PYSEC-2026-4305

uv: Path traversal on Windows through wheel extraction

Quick fix

PYSEC-2026-4305 — uv: upgrade to the fixed version with the command below.

pip install --upgrade 'uv>=0.12.18'

Details

### Impact

In versions of uv from 0.12.7 to 0.12.18 on Windows, uv could be induced into writing a file outside of the installation prefix during wheel installation.

A malicious wheel could use this to place an executable outside of the intended environment, including in a directory already present on the user's PATH.

This vulnerability only affects Windows hosts; no other platforms are affected.

### Patches

uv 0.12.18 and newer address this vulnerability. Users are encouraged to upgrade to 0.12.18.

### Workarounds

There is no workaround other than upgrading to uv 0.12.18.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/uv
Introduced in: 0.12.7Fixed in: 0.12.18
Fixpip install --upgrade 'uv>=0.12.18'

References