Skip to content

deps: security updates (anyio, cryptography, pillow, …) - #28

Merged
eprifti merged 1 commit into
mainfrom
deps/security-bumps
Nov 26, 2026
Merged

eprifti merged 1 commit into
mainfrom
deps/security-bumps

Conversation

@eprifti

@eprifti eprifti commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

The image's vulnerability scan (Trivy, informational on main) reports 57 findings in Python packages, 7 CRITICAL and 50 HIGH. This bumps each affected package to the lowest version that fixes all of its listed CVEs.

Package From To Findings
pillow 12.1.1 13.0.0 41 (CRITICAL, HIGH)
pyasn1 0.6.3 0.6.5 7
cryptography 46.0.5 50.0.0 3 (HIGH)
python-multipart 0.0.22 0.0.30 2
anyio 4.13.0 4.14.2 1 (CRITICAL)
certifi 2026.2.25 2026.10.18 1
setuptools (newly pinned) 79.0.1 (base image) 84.2.1 vendored wheel 0.45.1 and jaraco.context 5.3.0 (1 each)

setuptools was not in the lock: the flagged wheel and jaraco.context are copies vendored inside the base image's setuptools 79.0.1, which the app never uses at runtime. Pinning setuptools 84.2.1 (vendors wheel 0.46.3, no jaraco.context) replaces it.

Compatibility: no pinned package caps these versions (reportlab needs pillow>=9, python-jose needs cryptography>=3.4 and pyasn1>=0.5, starlette needs anyio<5). Hashes regenerated with scripts/hash-lock.py (--check: 67 pins, 0 problems).

Tested by installing the lock over the current image: pip check clean, backend suite 561 passed, 6 skipped.

Not addressed: one HIGH finding in the Debian base layer (libzstd1 1.5.7+dfsg-1, fixed in +deb13u1), which goes away with the next digest update of python:3.11-slim.

…n1, python-multipart, setuptools

Fixes the CRITICAL/HIGH findings of the image scan (Python packages):
anyio 4.13.0 -> 4.14.2, certifi 2026.2.25 -> 2026.10.18, cryptography
46.0.5 -> 50.0.0, pillow 12.1.1 -> 13.0.0, pyasn1 0.6.3 -> 0.6.5,
python-multipart 0.0.22 -> 0.0.30. setuptools is now pinned (84.2.1): the
base image's 79.0.1 vendored vulnerable copies of wheel and jaraco.context.
@eprifti
eprifti merged commit 3f1810c into main Nov 26, 2026
4 checks passed
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