← astral-sh/uv
CodeVetter · Repo Unpack · Risk map

astral-sh/uv

Scanned commit a9e231a7e3 dated 2026-09-21 — last upstream commit. Generated by codevetter codevetter 1.12.0 on 2026-09-22. Deep analysis by cli:grok via the grok CLI on 2026-09-22 (378s).

uv is designed to run on a trusted developer or CI machine while consuming untrusted package, Git, and archive bytes. The threat model in agents/references/threat-model.md is the security contract: locked operations must not change sources or hashes, credentials must stay in their realm, and archive members must not write outside the chosen root. Concrete risk in the code includes plaintext credentials by default, a non-atomic uv.lock write, build backends and uv run executing arbitrary code by design, and a very large command dispatcher that every CLI change touches. Optional features and preview flags also change security-relevant defaults between the cargo-dist binary and distro packages.