Borehole · Project · free tier
astral-sh/uv
Free reading: not for reliance
bac35f5 · 10,650 commits · 1,791 files
Read 2026-11-08

astral-sh/uv: technical due diligence, read from its repository

What Borehole read in astral-sh/uv's code and history at bac35f5: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsnot assessable
Fit with the Acquirernot assessable

What the repository says

  • CONTRIBUTING.md:31: states a policy on AI-generated contributions

Architecture & Codebase — including AI provenance

strong
01.6

crates/uv-lock/src/lock/mod.rs is 11,107 lines, 66× this codebase's median file

adequate

The median source file here is 167 lines. 37 files exceed 1,670 lines, the largest being 11,107. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.

Evidence
crates/uv-lock/src/lock/mod.rs:1 — 11,107 lines (66× median)
crates/uv-cli/src/lib.rs:1 — 7,984 lines (47× median)
crates/uv/src/settings.rs:1 — 5,512 lines (33× median)
crates/uv-python/src/discovery.rs:1 — 4,851 lines (29× median)
crates/uv-pep440/src/version.rs:1 — 4,805 lines (28× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

adequate
05.6

2 Dockerfiles run the application as root

adequate

No USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.

Evidence
Dockerfile — runs as root
crates/uv-trampoline/Dockerfile — runs as root
05.27

The build runs third-party code it does not pin

adequate

1 step pipes a download straight into a shell. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.

Evidence
.github/workflows/test-system.yml:681 — download piped into a shell
05.26

30 locked dependencies have published vulnerabilities, 16 high or critical

adequate

30 of 841 locked dependencies match 62 published advisories in OSV, 16 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version. None of the high or critical ones is in what the product ships: they are development dependencies. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.

Evidence
uv.lock — anyio 4.13.0: GHSA-82r6-8w77-94w6 (critical), fixed in 4.14.2; a development dependency
uv.lock — certifi 2026.4.22: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.18; a development dependency
uv.lock — gitpython 3.1.58: GHSA-284h-m62q-gf8w (critical), fixed in 3.1.59; a development dependency
05.65

9 advisories against this project in the last 24 months, 2 high or critical

adequate

The newest was published on 2026-10-21. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 2 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 0.12.19. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 6 records name uv with nothing tying them to this repository (CVE-2017-16200, CVE-2026-10201, CVE-2026-88066, …).

Evidence
2026-10-21: CVE-2025-71437 (high): Astral uv before 0.8.22 contains a path traversal vulnerability in source distribution (sdist) tar extraction that allows a specially crafted sequence of symlin
2026-10-20: GHSA-hq85-5cpj-mr62 (critical), fixed in 0.13.4: uv's bundled CA store trusts an emSign root whose intermediate CA keys are compromised
2026-09-23: GHSA-2cv4-cqwr-gwf7 (moderate), fixed in 0.12.18: uv: Path traversal on Windows through wheel extraction
2026-05-18: GHSA-4gg8-gxpx-9rph (moderate), fixed in 0.11.15: uv is vulnerable to arbitrary file write through entry point names
2026-04-09: GHSA-pjjw-68hj-v9mw (low), fixed in 0.11.6: uv vulnerable to arbitrary file deletion through RECORD entries

Observability & Operations

not assessable

Not rated: only 4 of 16 checks could reach a conclusion here; the rest do not apply to this repository or could not read it.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on astral-sh/uv: every dimension, the questions for the room, and the audit log.

Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.