uv 0.13.10 Checks the Lockfile and Closes a ZIP Parser Gap

uv 0.13.10, released 24 November 2026, checks uv.lock against the manifest, explains --locked failures, and closes a ZIP parser gap. What changes and how to upgrade.

Astral released uv 0.13.10 on 24 November 2026, and the release is mostly about trust in the lockfile. The headline changes validate that uv.lock still matches the project manifest, explain why --locked refuses a stale lockfile, and reject wheel archives whose ZIP records disagree about a member’s size. That last item fixes a parser gap tracked as GHSA-vjvj-3m3f-fgmm, rated low severity. The rest of the release is a preview for proxy indexes, refreshed managed Python builds, and a handful of resolver and sync fixes. The changelog lists the full set.

The lockfile work matters because uv.lock is the file teams actually deploy from. A manifest says what a project wants. The lockfile says exactly which versions got picked, for which platforms, with which hashes. When the two drift apart, installs stop being reproducible, and the failure usually shows up in CI at the worst moment. Version 0.13.10 narrows that gap in three places, and the error messages now say which one broke.

The lockfile now gets checked against the manifest

The first change is the most direct. uv now validates that the dependency requirements recorded in uv.lock match the locked package versions. If a requirement in the manifest asks for one thing and the lockfile pins another, uv reports it instead of installing the pinned version and moving on. The change comes from pull request #23238 in the uv repository.

That sounds like something a lockfile should have done from the start, and in most flows it did, because the normal path regenerates the lockfile whenever the manifest changes. The gap appears in the flows that skip regeneration. A developer edits pyproject.toml by hand, merges a branch that changed a dependency, or copies a lockfile between machines, and the two files quietly disagree. Before this release, the mismatch could survive until something downstream failed with a confusing error. Now uv catches it at the point where the lockfile is read.

The second check covers the opposite direction. uv now reports dependencies that have no matching package entry in the lockfile at all, from pull request #23304. A dependency listed in the manifest but missing from the lock is a half-finished state, usually left behind by an interrupted uv lock run or a bad merge. Surfacing it early keeps a broken lockfile from reaching a build that would fail later with less context.

Together, the two checks make uv.lock a file that gets audited when it is used, rather than a file that is trusted because it exists. That is a small shift in behaviour and a useful one for teams that commit lockfiles and review their diffs. A lockfile diff that passes review but hides a mismatch between manifest and pin is exactly the kind of thing that wastes an afternoon. The new validation does not replace reviewing lockfile diffs, and it does not check whether the pinned versions are good choices. It checks that the lockfile says what the manifest says, which is the minimum a lockfile has to do.

Locked mode explains itself

The third lockfile change concerns --locked, the flag that tells uv to refuse any install that would require recalculating the lockfile. CI pipelines use it to guarantee that the code being built is the code that was reviewed. The flag itself has not changed: when the lockfile needs an update, uv still refuses to proceed. What changed is the message. From pull request #23251, uv now explains why the lockfile needs updating instead of stopping with a bare refusal.

Anyone who has debugged a failing CI job at the end of the day will recognise the value here. A --locked failure used to leave the reader guessing whether the cause was a changed dependency, a missing lock entry, or something unrelated to the lockfile at all. The release notes summary puts it plainly: the new output gives a concrete explanation of why an update is necessary. That lets a reader tell a genuine dependency mismatch from an unrelated installer failure, which is the distinction a failing pipeline needs most. A pipeline that fails on a stale lockfile needs a uv lock and a commit. A pipeline that fails for another reason needs a different fix, and the old message did not help tell them apart.

There is a related fix worth noting for teams that run universal resolution. uv pip compile --universal no longer reuses yanked pins when their environment markers cannot be satisfied, from pull request #23394. A yanked release is one the author withdrew, and reusing its pin across platforms was a quiet source of non-reproducible builds. The same release also makes uv ignore unreachable wheels before it demands hashes for the lockfile, from pull request #23312, so a dead mirror does not block hash verification for packages that are available elsewhere.

The 0.13.9 release from 17 November had already touched this area. It fixed uv lock --locked rejecting lockfiles whose equivalent platform markers were written in different forms, which is the same class of problem: two spellings of the same constraint being treated as a disagreement. Version 0.13.10 continues that work from the other side, checking the substance of the lockfile rather than the spelling of its markers.

The ZIP parser gap

The security fix in this release is the part that justifies upgrading even for teams that do not care about lockfile diagnostics. uv now rejects wheels whose ZIP data descriptor and central directory disagree on the compressed size, from pull request #23332. The advisory is GHSA-vjvj-3m3f-fgmm, and it covers uv versions 0.1.29 through 0.13.9.

The mechanism is a parser differential, a case where two programs read the same file and come away with different contents. A ZIP member that uses a data descriptor records its compressed size in two places: once in the descriptor that follows the compressed data, and once in the central directory at the end of the archive. When those two records disagree, a streaming reader that trusts the descriptor and a reader that trusts the central directory can extract different bytes from the same archive. The same archive still passes the same SHA-256 check, because the check covers the bytes on disk, not the interpretation of them. In the understated case, uv installed the full file while pip installed a prefix of it, so the two installers disagreed about what was installed even though both succeeded.

The advisory rates the issue low severity, and the reasons are specific. Exploitation needs an attacker-controlled distribution, and PyPI now mitigates malformed ZIP uploads at the index level, which limits exposure through the public index. There are also limits on what the gap could do on its own. For a malicious wheel, installation alone is not enough: concealed code runs only when the installed module is later imported or otherwise invoked. A ZIP source distribution is more dangerous in this respect, because uv may invoke its build backend during dependency resolution or installation, which gives the archive a chance to run code earlier.

Version 0.13.10 closes the gap by refusing to choose. When the two size records disagree, uv rejects the archive instead of picking one interpretation. That is the right response to a parser differential: the archive is ambiguous, so it should not be installed. The fix is also a reminder that supply-chain safety reaches beyond hashes and signatures. A hash proves the file was not modified after it was signed. It does not prove that every reader will read the file the same way, and when readers disagree, the file itself is the problem.

Pyrastra covered a related uv fix in September, when uv 0.12.18 fixed a wheel path traversal while pip had no equivalent check. The two fixes rhyme: both are cases where uv’s archive handling had to get stricter about files that other tools accepted without complaint. The September fix was about where a wheel could write. This one is about what a wheel contains. Both are the kind of quiet hardening that only shows up in changelogs, and both are reasons to keep the tool current rather than pinning it and forgetting it.

Proxy indexes stay portable, in preview

The preview feature in 0.13.10 addresses a friction point for organisations that route package downloads through an internal proxy index. A lockfile generated against a proxy records the proxy’s URLs, which makes it unusable for anyone outside the proxy, including a collaborator pulling from the upstream index directly. The preview, from pull requests #20790 and #23276, uses reversible artifact URLs so a lockfile built against a proxy index stays portable back to its upstream index.

The word preview does a lot of work here. Astral frames this as an opt-in preview rather than a change in default behaviour, and the reversibility only governs how artifact locations map between the proxy and the upstream source. It does not expose private packages publicly, and it does not bypass the authentication and access rules of the destination environment. A team that adopts it still needs its proxy credentials and its index permissions in order; the feature only removes the lockfile as a reason the two environments cannot share one file.

For most readers this feature will not matter yet. It matters for the teams it targets, which are the ones running private mirrors in CI while their developers install from PyPI, or the reverse. Those teams have lived with a choice between maintaining two lockfiles or forcing everyone through the same index. A single portable lockfile removes that choice, and it does so without asking the proxy to change how it serves packages.

The preview also fits the pattern of how uv has shipped bigger changes this year: behind a flag, with the behaviour documented as experimental, until the edges are understood. The PEP 832 .venv redirect support that arrived as a preview in 0.13.9 is the same shape, a feature that changes where environments live, shipped carefully rather than all at once. Readers who enable the proxy preview should expect the details to move before it becomes the default.

New managed Python builds and the smaller fixes

The release refreshes the managed Python builds that uv can install. The new builds are CPython 3.11.18, 3.12.16, 3.13.18, 3.14.10, and 3.15.2, plus the 3.16.0a2 alpha, and GraalPy 3.13.0 build 25.6.5. These are patch-level updates to the runtimes uv provisions, and they arrive alongside an update to the bundled Mozilla root certificates, now via webpki-root-certs 1.0.12.

One point in the release coverage deserves emphasis: updating the catalog of managed runtimes does not switch the Python version pinned by an existing project. A project that pins 3.14 stays on its 3.14 build until someone changes the pin. The new builds are available as installation targets, not as automatic upgrades. That distinction matters for teams that treat a uv python upgrade as a deliberate step with its own testing, which is the right way to treat it.

The remaining fixes are small and practical. uv refreshes cached interpreter information when libc, the macOS version, or pyvenv.cfg changes, from pull requests #23214, #23215, and #23216, so a system upgrade no longer leaves uv trusting stale details about the interpreter it already found. uv sync --no-install-package can now skip a package cleanly even when no compatible distribution exists for the current target, from pull request #23338, which is the behaviour the flag’s name promises. And the changelog adds a citation to Minato’s original description of the ISOP algorithm, a documentation touch that says something about how carefully the resolver’s internals are being tracked.

Readers who have followed the toolchain through the year will recognise the cadence. The 2026 Python toolchain guide described Ruff, uv, and ty as replacements for the older set of tools, and the releases since then have been steady, small, and mostly about the edges: lockfiles, credentials, certificates, and the places where a fast tool can quietly be wrong. Version 0.13.10 is the same kind of release. It changes nothing about how a project is structured, and it changes how much the tool can be trusted when the project is built somewhere else.

How to check and upgrade

Upgrading is a single command through whichever path installed uv. The standalone installer, the package manager install, and the Docker image all ship 0.13.10, and the release artifacts carry GitHub Artifact Attestations that can be validated with the GitHub CLI against the astral-sh/uv repository. After upgrading, uv --version should report 0.13.10 or later.

To check whether the lockfile changes affect a project, run uv lock --check in the project directory. If the lockfile is out of sync with the manifest, the new validation will say so, and the explanation will point at the mismatch rather than a generic failure. To reproduce what CI does, run uv sync --locked and read the reason it gives if it refuses. If a project has been passing --locked in CI without trouble, this release changes nothing for it except the wording of the error when something eventually drifts.

For the security fix, the check is the version number. Any uv from 0.1.29 through 0.13.9 carries the parser gap, so anything below 0.13.10 should be updated, including the copy baked into Docker build images and the copy installed on CI runners. The September advisory about the emSign root is a useful parallel: the fix there was also delivered through updated managed builds, and the same advice applied, update the tool first and then update the images that bundle it.

No part of this article comes from running uv against a test project. The conclusions here are drawn from the official changelog, the security advisory coverage, and the release summaries linked above, and every version number and date is taken from those pages. A reader can verify each claim the same way: open the changelog entry for 0.13.10, compare the version with uv --version, and run uv lock --check on a project to see the new validation in action. The method is documentation against documentation, and the commands are the check.

The take

Version 0.13.10 is a maintenance release that earns its keep in two ways. The lockfile checks make a quiet failure loud, which is what a lockfile is for, and the ZIP fix removes an ambiguity that should never have been installable. Neither change will show up in a demo. Both show up the first time a build runs on a machine that is not the developer’s laptop, which is where reproducibility is actually tested. Teams that pin uv in their images should move the pin to 0.13.10 and rebuild. Teams that run --locked in CI should expect clearer errors the next time a lockfile drifts, and that is an improvement worth having before the drift happens.

Share this article

X Facebook LinkedIn Reddit Telegram

Your notes on this article

Your name or initials, note and date stay in this browser profile. Anyone using the profile can read them. Delete a note below or clear this site’s browser data. To reach the editors, report a correction.

No notes saved here