SEC2-068: CI installs uv from the moving install.sh with no version and no checksum; the core fixed this in #790 #20
Labels
No labels
bug
documentation
enhancement
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo-mcp#20
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found on 2026-10-16 in a read-only security review of
postulo-mcpat3819dbd, checked by a second, independent pass.Severity: Low · Category: Configuration · Reference: CWE-829 (Inclusion of Functionality from Untrusted Control Sphere); OWASP A08:2021 (Software and Data Integrity Failures)
Location:
.forgejo/workflows/ci.yml:19-24(curl -LsSf https://astral.sh/uv/install.sh | sh)Issue
The installer is fetched from an unversioned address and piped straight into a shell on every
run, so whatever astral.sh (or anything able to answer for it) serves that day runs in the job
with the checkout and the dependency resolution. The core closed this in postulo/postulo#790:
its
ci.ymlpinsUV_VERSION, downloadshttps://astral.sh/uv/${UV_VERSION}/install.shto afile, checks
UV_INSTALLER_SHA256withsha256sum -cand only then runs it(
postulo/.forgejo/workflows/ci.yml:88-90).Impact
A compromised or substituted installer runs arbitrary code in CI for every push and pull request.
The job has only the repository (no publishing step, no secrets beyond the checkout token), so the
reach is the integrity of the test and lint verdict and of anything the runner caches, not a
published artefact.
Fix
Copy the core's step:
#8 rewrites the same job (Node image,
uv sync --locked), so the pinned installer belongs in thatchange.
Done when the workflow runs green with the pinned installer and a deliberately wrong sha fails the
step.
Related
#8 (open) covers the job image,
uv sync --lockedand testing one Python only; it does notmention how uv is installed. postulo/postulo#790 (closed) is the core's fix of the same thing;
postulo/postulo-imap#14 (open) is the imap repository's.