Skip to content

backend: tracking issue for vulnerability scanner CVE remediation #7145

Open

Description

@mdmohsin7

Living index of CVEs flagged by Artifact Registry scans on the deployed backend image (gcr.io/based-hardware/backend) and how each one was addressed. Updated as new scans are run and new fixes ship.

Status legend

  • FIXED — package bumped, CVE no longer flagged by scanner
  • ACCEPTED — scanner flag retained, justification in notes (not exploitable in runtime image)
  • DEFERRED — known fix exists, scheduled for a follow-up PR
  • OPEN — not yet triaged

Fixed in PR #7126 — safe bumps (merged 2026-05-02)

10 atomic commits, no major-version cascades.

Package Was → Now CVE(s) Severity
h11 + httpcore 0.14.0 → 0.16.0 / 1.0.5 → 1.0.9 CVE-2025-43859 CRITICAL 9.1
urllib3 2.2.2 → 2.6.3 CVE-2025-66471, CVE-2026-21441, CVE-2025-66418 3× HIGH 7.5
tornado 6.4.1 → 6.5.5 CVE-2025-47287, CVE-2026-31958, CVE-2024-52804, CVE-2026-35536 3× HIGH 7.5, 1× HIGH 5.3
PyJWT 2.9.0 → 2.12.0 CVE-2026-32597 HIGH 7.5
pyasn1 0.6.0 → 0.6.3 CVE-2026-30922 HIGH 7.5
orjson 3.10.6 → 3.11.6 CVE-2025-67221 HIGH 7.5
GitPython 3.1.43 → 3.1.47 GHSA-rpm5-65cw-6hj4, GHSA-x2qx-6953-8485 2× HIGH
python-multipart 0.0.9 → 0.0.22 CVE-2024-53981, CVE-2026-24486 2× HIGH 7.5
aiohttp (+ aiohappyeyeballs, aiosignal, yarl) 3.9.5 → 3.13.3 CVE-2025-69223 HIGH 7.5
langchain-core 0.3.79 → 0.3.81 CVE-2025-68664, CVE-2025-65106 CRITICAL 8.2 + HIGH

Closed: 1 CRITICAL + 16 HIGH

Fixed in PR #7127 — major-version cascades (merged 2026-05-02)

5 atomic commits.

Package Was → Now CVE(s) Severity Cascades
cryptography (+ cffi 1.16 → 2.0) 43.0.0 → 46.0.5 CVE-2026-26007 HIGH 6.5 cffi
pillow (+ streamlit 1.37 → 1.51, altair 5.4 → 5.5, narwhals 1.5 → 1.14) 10.4.0 → 12.2.0 CVE-2026-25990, CVE-2026-40192 2× HIGH 7.5 streamlit/altair/narwhals
protobuf (+ grpcio* 1.62 → 1.66, google-cloud-firestore 2.17 → 2.20) 4.25.8 → 5.29.6 CVE-2026-0994 HIGH 7.5 grpc stack + firestore
fastapi + starlette 0.112 → 0.118 / 0.37 → 0.40 CVE-2024-47874 HIGH 7.5 fastapi cap

Closed: 5 HIGH (+ regression fix for the 1 MB multipart cap shipped in starlette 0.40 — global MultiPartParser.max_part_size = 200 MB startup patch; per-route caps tracked in #7130)

Fixed in PR #7146 — MEDIUM Python CVEs + 1 HIGH (merged 2026-05-03)

15 atomic commits.

Package Was → Now CVE(s) Severity Cascades
cryptography 46.0.5 → 46.0.7 CVE-2026-39892 MEDIUM (CVSS 9.8) —
Jinja2 3.1.4 → 3.1.6 CVE-2024-56201, CVE-2024-56326, CVE-2025-27516 3× MEDIUM (sandbox escape) —
aiohttp 3.13.3 → 3.13.4 CVE-2026-22815, -34515, -34516, -34525 + CVE-2026-34520 (LOW 9.1) + 5× LOW 4× MEDIUM + 6× LOW —
fonttools 4.53.1 → 4.60.2 CVE-2025-66034 MEDIUM (CVSS 9.8) —
Mako 1.3.5 → 1.3.11 CVE-2026-41205 MEDIUM 7.5 —
requests ~=2.32.5 → ~=2.33.0 CVE-2026-25645 MEDIUM 5.5 —
python-dotenv 1.0.1 → 1.2.2 CVE-2026-28684 MEDIUM 6.6 —
filelock 3.15.4 → 3.20.3 CVE-2025-68146, CVE-2026-22701 2× MEDIUM —
marshmallow 3.21.3 → 3.26.2 CVE-2025-68480 MEDIUM 5.3 —
python-multipart 0.0.22 → 0.0.26 CVE-2026-40347 MEDIUM 5.3 —
streamlit 1.51.0 → 1.54.0 CVE-2026-33682 MEDIUM 4.8 cachetools 5.4 → 5.5
h2 4.1.0 → 4.3.0 CVE-2025-57804 MEDIUM hyperframe 6.0.1 → 6.1.0, hpack 4.0.0 → 4.1.0
langchain-core 0.3.81 → 0.3.84 CVE-2026-40087 MEDIUM 5.3 — (patch within 0.3.x; HIGH CVE-2026-34070 still requires 1.x)
langsmith 0.4.37 → 0.7.31 CVE-2026-25528, CVE-2026-41182 2× MEDIUM —
starlette + fastapi 0.40.0 → 0.49.1 / 0.118.0 → 0.121.0 CVE-2025-62727 (HIGH) + CVE-2025-54121 (MEDIUM) HIGH 7.5 + MEDIUM 5.3 fastapi cap

Closed: 1 HIGH + 17 MEDIUM + 6 LOW

Accepted findings

Package CVE Reason
wheel CVE-2024-24049 (HIGH 5.5) Build-tool only; never imported by runtime uvicorn process. ReDoS in wheel filename parsing has no exploit path in deployed image.
jaraco.context CVE-2026-23949 (HIGH 8.6) Build-tool helper used by setuptools tooling. Path-traversal trigger requires runtime call against attacker-controlled paths; not imported by app code.

Fixed in PR #7149 — langchain stack 0.3 → 1.x (merged 2026-05-03)

2 atomic commits.

Package Was → Now CVE Severity
langchain-core 0.3.84 → 1.3.2 CVE-2026-34070 HIGH 7.5
langgraph-checkpoint 2.1.2 → 4.0.0 CVE-2025-64439 HIGH
langgraph 0.6.10 → 1.0.10 CVE-2026-28277 MEDIUM 7.2
langgraph-checkpoint 2.1.2 → 4.0.0 CVE-2026-27794 MEDIUM 6.6 (covered by same bump)
langchain-text-splitters 0.3.11 → 1.1.2 CVE-2026-41481 MEDIUM 6.5

Locked-in cascade across the langchain stack: langchain 0.3.27 → 1.2.9, langchain-community 0.3.31 → 0.4.1, langchain-openai 0.3.35 → 1.1.9 (held below 1.1.10 to defer the openai 2.x migration), langchain-google-genai 2.1.12 → 3.2.0, langchain-pinecone 0.2.12 → 0.2.13, langgraph-prebuilt (transitive 0.6.5) → 1.0.8 (new explicit pin), langgraph-sdk 0.2.9 → 0.3.0.

Cascade pins outside the langchain stack: openai 1.104.2 → 1.109.1, pydantic 2.8.2 → 2.11.10, pydantic_core 2.20.1 → 2.33.2, typing_extensions 4.12.2 → 4.15.0 (regression fix — langchain-core 1.x requires the extra_items TypedDict keyword added in typing_extensions 4.13).

Plus the no-op refactor of utils/llm/persona.py:5 from from langchain.schema to from langchain_core.messages (same classes; the langchain.schema re-export module is removed in langchain 1.x).

Deferred

Package CVE Severity Plan
langchain-openai CVE-2026-41488 LOW Fix at 1.1.14 requires openai>=2.26.0. Belongs with the openai 1.x → 2.x SDK migration.

Follow-ups

How to use this issue

When a new Artifact Registry scan surfaces a CVE:

  1. If a fix is shipped, add a row under a new Fixed in PR #... section.
  2. If the finding is not exploitable in our runtime image, add to Accepted findings with justification.
  3. If it requires invasive work, add to Deferred with a brief plan.

All bumps follow the same workflow: atomic commit per package family, tested against the same 190-test baseline subset via local Dockerfile.test. Scope: Python (PYPI) findings only; OS-level findings from the Debian base image are out of scope here and addressed via base-image bumps.

cc @thainguyensunya @beastoin

Activity

  1. added
    backend
    on May 3, 2026
  2. added
    p2
    on May 5, 2026
  3. aryanorastar commented on Aug 4, 2026

    @aryanorastar
    Collaborator

    Deferred CVE-2026-41488 on #7145 may already be resolved on the current repo head.

    Evidence (runtime lock):

    • backend/pylock.runtime.toml pins langchain-openai 1.1.14
    • backend/pylock.runtime.toml pins openai 2.38.0 (>= 2.26.0)

    This matches the #7145 Deferred condition: 'Fix at 1.1.14 requires openai>=2.26.0' (and therefore should no longer be deferred). Could a maintainer please re-run the Artifact Registry CVE scan and update the Deferred/Fixed tables accordingly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Securitybackendp2python

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions