Skip to content

fix: upgrade Docker image pip to ≥26.2.0 (CVE-2026-13346) - #35

Merged
cgfixit merged 1 commit into
mainfrom
cursor/trivy-pip-upgrade-9446
Sep 12, 2026
Merged

cgfixit merged 1 commit into
mainfrom
cursor/trivy-pip-upgrade-9446

Conversation

@cgfixit

@cgfixit cgfixit commented Sep 12, 2026 •

Copy link
Copy Markdown
Owner

Why

Trivy’s container scan reports CVE-2026-13346 (MEDIUM) against the pip METADATA left in python:3.12-slim after pip install pandas. Fixed version is 26.2.0.

This is the only open Trivy finding in the current inventory with a known, safe Fixed Version that we can apply without waiting on Debian.

Tracking for the remaining OS-package alerts (no Debian 13 fix yet): #36

Change

In Dockerfile, upgrade pip before installing pandas:

RUN python -m pip install --no-cache-dir --upgrade "pip>=26.2.0" \
    && pip install --no-cache-dir "pandas>=2.0.0"

What this does not do

  • Does not add .trivyignore or weaken the report-only Trivy workflow.
  • Does not remove busybox-static (still required for CRON_SCHEDULE → busybox crond in docker-entrypoint.sh).
  • Does not pin or rebuild Debian OS packages. The CRITICAL/HIGH clusters (perl-base, util-linux family, busybox-static, libsystemd0/libudev1) currently have empty Debian 13 (trixie) fixed versions (<no-dsa>). Those stay on Track Trivy image CVEs: wait for Debian 13 fixes (79 alerts) #36.

Risk / reachability

CVE-2026-13346 is a path-traversal during pip download/install from a malicious package index. The CLI does not invoke pip at runtime. The upgrade still clears a real residual installer CVE and is the correct hygiene if operators later docker exec / rebuild with extra packages.

Verification

  • Syntax-only Dockerfile change; no Python behavior change.
  • Live image rebuild + Trivy was not run in this environment (no Docker/Trivy on the agent host). Confirm on CI trivy-image after merge, or locally:
    docker build -t vhc-simplifier:trivy-scan . && trivy image vhc-simplifier:trivy-scan
Open in Web Open in Cursor 

The Trivy image scan reports pip in python:3.12-slim as vulnerable
until 26.2.0. Upgrade pip before installing pandas so the published
local image leaves a patched installer.

Co-authored-by: Chris Grady <cgfixit@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@cgfixit
cgfixit marked this pull request as ready for review September 12, 2026 04:26
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T04:27:56.801346Z 87cc519 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cgfixit
cgfixit merged commit f2aa05e into main Sep 12, 2026
17 of 18 checks passed
@cgfixit
cgfixit deleted the cursor/trivy-pip-upgrade-9446 branch September 12, 2026 04:26
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.

2 participants