Skip to content

build: bump Python base off stale 3.13.1 patch -> 3.13 line#203

Open
d0choa wants to merge 2 commits into
mainfrom
security/bump-python-runtime
Open

build: bump Python base off stale 3.13.1 patch -> 3.13 line#203
d0choa wants to merge 2 commits into
mainfrom
security/bump-python-runtime

Conversation

@d0choa

@d0choa d0choa commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Relax the Docker base image pin from the exact patch python:3.13.1-alpine3.21 to the python:3.13-alpine3.21 minor line.

This addresses a security-audit lifecycle finding (CWE-1104, Use of Unmaintained Third Party Components — Low). Python 3.13 itself is still supported (bugfixes through ~2029), but 3.13.1 is a December 2024 patch release. Pinning that exact patch froze the runtime on a 2024 build and left it missing ~13 subsequent CPython patch releases of security and bug fixes. Tracking the 3.13 minor line means rebuilds automatically pick up the latest 3.13 patch, so this drift never recurs while staying on the same supported minor.

Scope / verification

  • Single-line change to Dockerfile (base image tag only); nothing else touched.
  • Application dependencies remain pinned via uv.lock (uv sync --frozen), so build reproducibility of the app deps is unaffected.
  • python:3.13-alpine3.21 is a standard Docker official image variant. Confirmed resolvable via docker manifest inspect python:3.13-alpine3.21 (returns a valid multi-arch OCI image index).

d0choa added 2 commits June 19, 2026 12:23
Pinning the exact python:3.13.1-alpine3.21 patch froze the runtime on a
December 2024 CPython build, missing subsequent 3.13 security and bug-fix
patch releases. Relax the pin to the 3.13 minor line so rebuilds pick up
the latest 3.13 patch automatically. Python 3.13 remains a supported minor
line, and app dependencies stay pinned via uv.lock, so reproducibility of
the application deps is unaffected.
@d0choa d0choa requested a review from javfg June 19, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant