Skip to content

fix: clear the urllib3 and setuptools image findings #325

Closed

Description

@uniqueg

Trivy reports three open code-scanning alerts on dev (target "Python") in the image:

  • Code-scanning alert 167: urllib3 2.7.0, CVE-2026-97688, Denial of Service via infinite loop during chunked Deflate decoding (medium; fixed in 2.8.0)
  • Code-scanning alert 166: setuptools 70.3.0, CVE-2026-59890, MANIFEST.in exclusion bypass in sdist via Unicode normalization collision (medium; fixed in 83.0.0)
  • Code-scanning alert 343: setuptools 70.3.0, GHSA-xmj3-9gf7-h52w, Windows path escape via namespace_packages.txt during legacy wheel installation (low; fixed in 84.1.0)

Root cause

None of these versions is installed as a package. uv.lock already locks urllib3 2.8.0 (installed in the image) and setuptools 84.2.1 (build stage only; the final image has no setuptools). The reported versions are the copies vendored by pip 26.2.2 of the base image (pip/_vendor/vendor.txt, pip/_vendor/bom.cdx.json): urllib3==2.7.0 and setuptools==70.3.0 (only pkg_resources). pip 26.2.2 is the latest release; pip's main branch has urllib3 2.8.0 but still setuptools 70.3.0, so they can't be bumped. pip only runs at build time, and the app imports neither pip nor its vendored packages.

Fix

Accept the three advisories in .trivyignore.yaml, limited to the vendored versions (purls), with a statement and the expiry 2027-01-31, as for the earlier advisories of pip's vendored copies and as FOCA does (elixir-cloud-aai/foca#562). Removing pip from the image, which clears all of them, stays in #279.

Blocks the v1.0.0rc1 tag.

Activity

  1. added this to the v1.0.0-rc1 milestone on Nov 1, 2026
  2. added
    priority: high
    status: in progress
    type: security
    workload: minutes
    on Nov 1, 2026
  3. added
    type: delivery
    and removed
    status: in progress
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: hightype: deliverytype: securityworkload: minutes

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions