MrTechKing

7 min read

uv: One Fast Tool for Python Packages, Projects and Versions (GitHub, Scanned)

A free, very fast Python package and project manager from Astral that replaces pip, venv, pipx and pyenv with one tool.

uv logo
✅
Scan: safe. Nothing malicious. One thing to know: like pip, uv puts your OS, Python version and CPU type in the user agent of every request to the package index, and its install script edits your shell profile. Scanned Nov 30, 2026; the full report is below.

uv is a free command-line tool from Astral that installs Python packages, sets up projects and even installs Python itself, all from one program. Run uv init my-app, then uv add requests, and it creates the project, a virtual environment and a lock file in a second or two; uv run main.py runs your code inside that environment without you activating anything.

It earns its place because it does the jobs of pip, pip-tools, pipx, Poetry, pyenv, virtualenv and twine in one binary, and the project measures it at 10 to 100 times faster than pip. A shared cache stores each package once on your disk. uvx runs a Python tool such as Ruff or Black in a throwaway environment, uv python install 3.13 fetches a Python version, and uv pip install accepts pip's usual arguments, so you can switch one command at a time. Projects use the standard pyproject.toml file, so they are not locked to uv.

uv is dual-licensed under MIT and Apache 2.0 and written in Rust. Astral, the company behind Ruff, maintains it; in March 2026 Astral announced it is joining OpenAI's Codex team and said its tools will stay open source. It has about 92,800 stars and over 600 contributors. Version 0.13.10 came out on 24 November 2026.

  • Repository: github.com/astral-sh/uv
  • Licence: Apache-2.0 (Apache License 2.0)
  • Language: Rust. Stars: 92.8K. Forks: 4,000. Last push: Nov 30, 2026.
  • Scan: safe, Nov 30, 2026, commit c2f08ef

Who it is for

Python developers tired of juggling pip, virtualenv and pyenv, data scientists setting up environments, and anyone who installs Python command-line tools. It runs on macOS, Linux and Windows from a terminal, and you do not need Python installed first.

Getting started

1. Install on macOS or Linux (it puts uv in ~/.local/bin and adds that folder to your PATH)

curl -LsSf https://astral.sh/uv/install.sh | sh

2. Or on Windows, in PowerShell

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

3. Or with Homebrew

brew install uv

4. Start a project, add a package and run it; uv makes the environment and the lock file

uv init my-app
cd my-app
uv add requests
uv run main.py

5. Install a Python version

uv python install 3.13

6. Run a Python tool once without installing it

uvx ruff check

The install scripts download the uv and uvx programs, put them in ~/.local/bin and add that folder to your shell profile; set UV_NO_MODIFY_PATH=1 to stop that, and no sudo is needed. uv keeps a shared package cache in your user cache folder and installs Python versions and tools under your home folder, never into the system Python. Our scan covers the source code, not the prebuilt binaries or the Python builds it downloads.

Safety scan

We cloned astral-sh/uv at commit c2f08ef on Nov 30, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.

  • 1 secret hit and 6 committed binaries across 1,896 files and about 621,000 lines, mostly Rust. The hit, crates/uv/tests/pip_install/pip_install.rs line 4037, is a GitHub token the test labels as revoked, used to check uv's error message when a private repo refuses it. The binaries in crates/uv-trampoline-builder/trampolines are uv's small Windows launchers for installed scripts; a CI job rebuilds them in Docker and fails if they differ from the committed files.
  • 3 pattern hits, all in crates/uv-fs/src/path.rs lines 969 to 977: tests with long runs of escaped bytes that check how uv handles unusual file names. The 5 Rust build scripts set the version string, compress the list of Python downloads, embed a Windows manifest and link Windows libraries; none downloads anything.
  • The installer you pipe to sh is not in this repo: Astral generates it with cargo-dist (dist-workspace.toml) and serves it from astral.sh. It installs into ~/.local/bin and edits your shell profile unless UV_NO_MODIFY_PATH=1 is set, with no sudo. Prebuilt binaries are on the releases page, and pip, Homebrew, winget and most Linux distributions package it too.
  • 101 advisories across 926 packages in 7 lockfiles, 3 critical, none in the uv program. Its Cargo.lock has 1 moderate, the Marvin timing attack in the rsa crate, plus 40 unrated notices of unmaintained or unsound crates such as zstd-safe and quinn-proto. The 3 critical (AnyIO and GitPython) and all 29 high sit in uv.lock, which pins the maintainers' docs and check tools, in scripts/benchmark/uv.lock and in a test package. The uv package on PyPI has no Python dependencies.
  • uv contacts the package indexes you use, PyPI by default, and downloads Python builds from Astral's python-build-standalone releases when you ask for a version you do not have. Like pip, it adds your OS, Python version, CPU type and whether it runs in CI to the user agent of those requests (crates/uv-client/src/linehaul.rs); there is no other telemetry. 47 workflows, no pull_request_target; 155 of 255 third-party action uses are pinned to a commit. A security policy and Renovate are present; no CodeQL or OpenSSF Scorecard result.

What the scanner counted

CheckResult
Secrets1 candidate found and read; see the notes above.
Suspicious code3 pattern hits found and read; every one is listed under the raw findings.
Install-time code5 Cargo build scripts. 2 installer scripts
Committed binaries6 executable or compiled objects committed; listed under the raw findings.
CI workflows47 workflows. None use pull_request_target. 100 of 255 third-party actions pinned to a tag rather than a commit.
Network hosts40 distinct hosts referenced from source; most often files.pythonhosted.org, github.com, pypi.org, download.pytorch.org. 2 URLs to a bare IP address, listed under the raw findings.
Known vulnerabilities101 advisories across 926 pinned packages: 3 critical, 29 high, 25 moderate, 4 low, 40 unrated. Cargo.lock: 743 packages, 41 advisories; crates/uv-trampoline/Cargo.lock: 23 packages, 0 advisories; crates/uv-trampoline/toolchain/uv.lock: 2 packages, 0 advisories; scripts/benchmark/uv.lock: 78 packages, 32 advisories; test/packages/built-by-uv/uv.lock: 9 packages, 3 advisories; test/packages/deptry_reproducer/Cargo.lock: 1 packages, 0 advisories; uv.lock: 97 packages, 29 advisories.
Project hygieneHas security policy, automated dependency updates, contributing guide. Missing CodeQL, licence file.
OpenSSF ScorecardNot scored: the project is not in Scorecard's weekly index.

The raw findings

Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.

Secret candidates (1, redacted)
WhereRuleMatch
crates/uv/tests/pip_install/pip_install.rs:4037github-tokengithub…nbt (93 chars)
Pattern hits (3)
WhereRuleMatch
crates/uv-fs/src/path.rs:969long-hex-escape-runr#"__import__("os").fsdecode(b"/foo/_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95…
crates/uv-fs/src/path.rs:973long-hex-escape-runr#"__import__("os").fsdecode(b"/foo/\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2…
crates/uv-fs/src/path.rs:977long-hex-escape-runr#"__import__("os").fsdecode(b"/foo/\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0…
URLs to bare IP addresses (2)
WhereRuleMatch
crates/uv/tests/it/auth.rs:488ip-literal-url.arg("https://192.0.2.1:1000")
crates/uv/tests/it/auth.rs:494ip-literal-urlerror: Failed to fetch credentials for `public@https://192.0.2.1:1000/`
Installer scripts (2)
Committed binaries (6)
  • crates/uv-trampoline-builder/trampolines/uv-trampoline-aarch64-gui.exe: PE (Windows executable), 46 KB
  • crates/uv-trampoline-builder/trampolines/uv-trampoline-x86_64-gui.exe: PE (Windows executable), 46 KB
  • crates/uv-trampoline-builder/trampolines/uv-trampoline-aarch64-console.exe: PE (Windows executable), 45 KB
  • crates/uv-trampoline-builder/trampolines/uv-trampoline-x86_64-console.exe: PE (Windows executable), 45 KB
  • crates/uv-trampoline-builder/trampolines/uv-trampoline-i686-gui.exe: PE (Windows executable), 38 KB
  • crates/uv-trampoline-builder/trampolines/uv-trampoline-i686-console.exe: PE (Windows executable), 38 KB
Worst known vulnerabilities (24 of 101)
AdvisorySeverityPackageSummary
GHSA-82r6-8w77-94w6criticalanyio@4.6.2.post1AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
GHSA-82r6-8w77-94w6criticalanyio@4.13.0AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
GHSA-284h-m62q-gf8wcriticalgitpython@3.1.58GitPython: Dormant multi-line git-config values are corrupted into live injected directives (e.g. core.hooksPath) on any…
GHSA-5fqc-mrg8-w798highdulwich@1.2.5Dulwich: Symlink directory traversal in filter-branch index_filter via cross-commit state persistence
GHSA-8mcx-5rqc-vhmfhighdulwich@1.2.5Dulwich: Arbitrary File Write (RCE) on Windows via Unvalidated Drive Letters in Tree Paths
GHSA-8w8g-wq8h-fq33highdulwich@1.2.5Dulwich: Symlink write-through in checkout(paths=[]) via raw os.open bypasses all symlink protections
GHSA-cm62-gvxx-vmxxhighdulwich@1.2.5Dulwich: Symlink directory traversal in stash pop allows arbitrary file write via intermediate directory symlinks
GHSA-j586-36cw-2gc2highmsgpack@1.2.1MessagePack: Unbounded memory leak in msgpack C extension on strict_map_key validation failure
GHSA-8988-9cw3-xx77highurllib3@2.7.0urllib3: HTTPS proxy TLS configuration may be ignored or overridden
GHSA-vxq7-64xx-v4gwhighurllib3@2.7.0urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
GHSA-394h-qwmc-48pfhighvirtualenv@20.36.1virtualenv: Xonsh activation literals depend on the script decoding codec
GHSA-5vjq-rrrf-7h2qhighvirtualenv@20.36.1virtualenv activate runs commands from the environment name in zsh with PROMPT_SUBST
GHSA-6w3r-xr62-4xcphighvirtualenv@20.36.1virtualenv: Bash prompt values can change meaning under older compatibility modes
GHSA-8rjx-v5ww-45pphighvirtualenv@20.36.1virtualenv activation scripts run code from a path that contains a placeholder name
GHSA-94p9-xgh2-xp45highvirtualenv@20.36.1virtualenv: Downloaded seed wheels (pip/setuptools) are not integrity-checked before use
GHSA-c947-3pg5-gm8qhighvirtualenv@20.36.1virtualenv activate.fish runs commands from a path or prompt with a backslash before a quote
GHSA-c978-59m8-c77vhighvirtualenv@20.36.1virtualenv: Generated POSIX console launchers interpret destination paths as shell syntax
GHSA-p58f-9548-mpm2highvirtualenv@20.36.1virtualenv bash and fish activation scripts execute commands embedded in paths
GHSA-vxj4-q4g9-crj7highvirtualenv@20.36.1virtualenv bash activate runs commands from an environment name with a backslash before $
GHSA-x78j-v8h9-3j2qhighvirtualenv@20.36.1virtualenv: Command injection via --prompt in activate.bat (batch activator)
GHSA-cg8m-r9f2-5wm2highblack@26.5.1Black: GitHub Action installs unvalidated required-version from pyproject.toml
GHSA-239g-whfq-7xj9highgitpython@3.1.58GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution
GHSA-23mf-xhv8-69c2highgitpython@3.1.58GitPython: arbitrary file read via attacker-controlled branch name in `Head.checkout()` (incomplete fix of CVE-2026-7867…
GHSA-7833-fr7j-v32qhighgitpython@3.1.58GitPython: Arbitrary local file content disclosure via [include] directive in untrusted .gitmodules (SubmoduleConfigPars…

By the numbers

Stars92.8K
Forks4,000
Contributors613
Commits11.5K
Open issues2,412
Open pull requests725
Releases333
Latest release0.13.10
LicenceApache-2.0
Main languageRust
Project age3 years
Last pushNov 30, 2026
Tracked files1,896
Lines of code621.1K
Checkout size43 MB

Lines by language: Rust 537K, Markdown 34.1K, TOML 19.1K, YAML 13.8K, Python 11.1K, JSON 4,063.

Questions

Is uv free?

Yes. It is free and open source under MIT or Apache 2.0, your choice, with no account and no paid version of uv.

uv or pip?

uv if you want speed and one tool for Python versions, environments and lock files. pip comes with Python and is fine for a quick install; uv pip install takes the same arguments, so you can move over gradually.

Does uv work on Windows?

Yes. Install it with the PowerShell command or winget, and it installs and manages Python versions on Windows too.

Does uv send my data anywhere?

Only to the package index and download servers it fetches from. Like pip, it tells the index your OS, Python version and CPU type in its user agent; it has no separate telemetry.

How do I uninstall uv?

Run uv cache clean, delete the folders printed by uv python dir and uv tool dir, then remove uv and uvx from ~/.local/bin, or run brew uninstall uv if you used Homebrew.


This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.