Skip to content

[Bug]: com.github.docker-java:docker-java-transport-zerodep pulls in apache httpcomponents which was tagged in CVE-2026-54428 #11973

Open

Description

@Wytzepakito

Module

Core

Testcontainers version

2.05

Using the latest Testcontainers version?

Yes

Host OS

Mac

Host Arch

ARM

Docker version

Client: Docker Engine - Community
 Version:           29.6.2
 API version:       1.55
 Go version:        go1.26.5
 Git commit:        dfc4efb1e2
 Built:             Thu Jul 16 16:09:24 2026
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.83.0 (234302)
 Engine:
  Version:          29.6.2
  API version:      1.55 (minimum version 1.40)
  Go version:       go1.26.5
  Git commit:       3d80467
  Built:            Thu Jul 16 16:13:03 2026
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          v2.2.5
  GitCommit:        e53c7c1516c3b2bff98eb76f1f4117477e6f4e66
 runc:
  Version:          1.3.6
  GitCommit:        v1.3.6-0-g491b69ba
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

What happened?

Please fix the security vulnerability

Relevant log output

Additional Information

No response

Activity

  1. kiview commented on Aug 24, 2026

    @kiview
    Member

    While this triggers CVE scanners, it is not exploitable in tc-java. docker-java has a PR open, that should mitigate this finding: docker-java/docker-java#2669

  2. added
    security
    and removed on Aug 24, 2026
  3. Inf1mum commented on Nov 6, 2026

    @Inf1mum

    The flagged code is not a POM-level transitive of docker-java-transport-zerodep — httpclient5 5.5.1 / httpcore5(-h2) 5.3.6 are shaded inside the zerodep jar itself (relocated under com.github.dockerjava.zerodep.shaded.* with embedded META-INF/maven metadata), so no exclusion or version pin in testcontainers can remove the finding, and docker-java/docker-java#2669 hasn't been released yet. I'd like to propose a PR that drops the docker-java-transport-zerodep dependency from core and instead shades docker-java-transport-httpclient5 + httpclient5 5.6.4 (which brings httpcore5 5.4.3, the first fixed release of CVE-2026-54428) into the testcontainers jar, switching DockerClientProviderStrategy from ZerodepDockerHttpClient to ApacheDockerHttpClient (their builder defaults are identical). Happy to adjust or stand down if you'd rather wait for the next docker-java release — feedback welcome before I open the PR.

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

    securitytype/housekeeping

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions