Skip to content

fix: upgrade pip to ≥26.1.2 across all service Dockerfiles (CVE-2026-8643)#409

Draft
kherrera6219 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-code-scanning-alert-342
Draft

fix: upgrade pip to ≥26.1.2 across all service Dockerfiles (CVE-2026-8643)#409
kherrera6219 with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-code-scanning-alert-342

Conversation

Copilot AI commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

python:3.11-slim-bookworm ships pip 24.0, which is vulnerable to CVE-2026-8643 — a path traversal flaw where console_scripts/gui_scripts entry points are treated as paths, enabling arbitrary file writes outside the install directory during wheel installation.

Changes

  • All 7 service Dockerfiles (orchestrator, pod-worker, audit-worker, api-gateway, protocol-bus-mcp, dashboard, agent-runtime) get two new RUN lines:
    • Stage 1 (builder) — upgrades pip inside the venv before installing requirements
    • Stage 2 (runtime) — upgrades the system pip before ENV PATH=/opt/venv/bin:$PATH takes effect, targeting the /usr/local/lib/python3.11/site-packages/pip location that Trivy scans
# Stage 1: upgrade pip in the venv
RUN python -m venv /opt/venv
ENV PATH=/opt/venv/bin:$PATH
RUN pip install --no-cache-dir --upgrade "pip>=26.1.2"   # ← added

# Stage 2: upgrade system pip before venv PATH is applied
WORKDIR /app
RUN pip install --no-cache-dir --upgrade "pip>=26.1.2"   # ← added
ENV PATH=/opt/venv/bin:$PATH

Copilot AI changed the title [WIP] Fix code scanning alert #342 fix: upgrade pip to ≥26.1.2 across all service Dockerfiles (CVE-2026-8643) Jul 26, 2026
@codesyncapp

codesyncapp Bot commented Jul 26, 2026

Copy link
Copy Markdown

Check out the playback for this Pull Request here.

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