fix(security): update module github.com/docker/compose/v2 to v2.40.2 [security] #785
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.35.0->v2.40.2GitHub Vulnerability Alerts
CVE-2025-62725
Docker Compose trusts the path information embedded in remote OCI compose artifacts. When a layer includes the annotations com.docker.compose.extends or com.docker.compose.envfile, Compose joins the attacker‑supplied value from com.docker.compose.file/com.docker.compose.envfile with its local cache directory and writes the file there.
Impact
This affects any platform or workflow that resolves remote OCI compose artifacts, Docker Desktop, standalone Compose binaries on Linux, CI/CD runners, cloud dev environments is affected.
An attacker can escape the cache directory and overwrite arbitrary files on the machine running docker compose, even if the user only runs read‑only commands such as docker compose config or docker compose ps.
Patches
v2.40.2
Workarounds
NA
Release Notes
docker/compose (github.com/docker/compose/v2)
v2.40.2Compare Source
What's Changed
🐛 Fixes
🔧 Internal
Full Changelog: docker/compose@v2.40.1...v2.40.2
v2.40.1Compare Source
What's Changed
🐛 Fixes
🔧 Internal
⚙️ Dependencies
New Contributors
Full Changelog: docker/compose@v2.40.0...v2.40.1
v2.40.0Compare Source
What's Changed
✨ Improvements
🐛 Fixes
🔧 Internal
⚙️ Dependencies
Full Changelog: docker/compose@v2.39.4...v2.40.0
v2.39.4Compare Source
What's Changed
✨ Improvements
develop.watch.initial_syncattribute by @glours in #13232🐛 Fixes
runcommand started from a piped command by @glours in #13233🔧 Internal
⚙️ Dependencies
compose-goto versionv2.9.0by @glours in #13234New Contributors
Full Changelog: docker/compose@v2.39.3...v2.39.4
v2.39.3Compare Source
What's Changed
✨ Improvements
--progressflag by @m4rch3n1ng in #13158🐛 Fixes
--provenanceand--sbomflag to generatedbakecommand line, by @glours in #13147--followby @ndeloof in #13193execwithout index by @ndeloof in #13178autoby @ndeloof in #13181--buildsupport forservice:* referencein additional_context by @ndeloof in #13183--hostand setDOCKER_HOSTaccordingly running bake by @ndeloof in #13182🔧 Internal
--tty--interactiveflags by @ndeloof in #13201⚙️ Dependencies
New Contributors
Full Changelog: docker/compose@v2.39.2...v2.39.3
v2.39.2Compare Source
What's Changed
🐛 Fixes
_MODELsuffix to model variable pass to dependent services of a model by @glours in #13109BUILDKIT_PROGRESSvalue when building with bake by @glours in #13110pullandno_cachefrom either service or flags values when building with bake by @glours in #13133upcommand by @glours in #13114🔧 Internal
json.goby @suwakei in #13106cli-plugins/metadatapackage by @thaJeztah in #13130pkg/compose: simplify getting auth-config key by @thaJeztah in #13120⚙️ Dependencies
28.3.2+incompatibleto28.3.3+incompatibleby @dependabot[bot] in #1311628.3.2+incompatibleto28.3.3+incompatibleby @dependabot[bot] in #131152.1.3to2.1.4by @dependabot[bot] in #131190.5.0to0.6.0by @dependabot[bot] in #131370.34.0to0.35.0by @dependabot[bot] in #131381.23.12by @austinvazquez in #13142New Contributors
Full Changelog: docker/compose@v2.39.1...v2.39.2
v2.39.1Compare Source
What's Changed
🔧 Internal
⚙️ Dependencies
Full Changelog: docker/compose@v2.39.0...v2.39.1
v2.39.0Compare Source
What's Changed
✨ Improvements
--since&--untilflags toeventscommand by @jarqvi in #13030--modelsflag toconfigcommand by @jarqvi in #13022COMPOSE_BAKE=falseis deprecated by @ndeloof in #13065provenanceandsbomattributes support by @ndeloof in #13067🐛 Fixes
plaindisplay mode if stdout isn't a terminal by @ndeloof in #13074🔧 Internal
moby/errdefsby @thaJeztah in #13076pkg/system.IsAbsby @thaJeztah in #13075⚙️ Dependencies
v28.3.2by @ndeloof in #130351.0.6to1.0.7by @dependabot[bot] in #13060compose-goto versionv2.8.0by @glours in #130821.73.0to1.74.2by @dependabot[bot] in #13081v0.26.1by @glours in #13086New Contributors
Full Changelog: docker/compose@v2.38.2...v2.39.0
v2.38.2Compare Source
What's Changed
✨ Improvements
--networksflag to config command by @jarqvi in #13021🐛 Fixes
🔧 Internal
⚙️ Dependencies
New Contributors
Full Changelog: docker/compose@v2.38.1...v2.38.2
v2.38.1Compare Source
What's Changed
✨ Improvements
model_variableby @ndeloof in #13001⚙️ Dependencies
Full Changelog: docker/compose@v2.38.0...v2.38.1
v2.38.0Compare Source
What's Changed
✨ Improvements
🐛 Fixes
⚙️ Dependencies
New Contributors
Full Changelog: docker/compose@v2.37.3...v2.38.0
v2.37.3Compare Source
What's Changed
✨ Improvements
🐛 Fixes
🔧 Internal
⚙️ Dependencies
Full Changelog: docker/compose@v2.37.2...v2.37.3
v2.37.2Compare Source
What's Changed
✨ Improvements
use_api_socketby @ndeloof in #12908🐛 Fixes
🔧 Internal
runlogic inside backend by @ndeloof in #12908⚙️ Dependencies
Full Changelog: docker/compose@v2.37.1...v2.37.2
v2.37.1Compare Source
What's Changed
✨ Improvements
🐛 Fixes
🔧 Internal
⚙️ Dependencies
New Contributors
Full Changelog: docker/compose@v2.37.0...v2.37.1
v2.37.0Compare Source
What's Changed
ℹ️
bakeis now used as the default images builder, if you don't want to use it you could opt-out by setting theCOMPOSE_BAKEenv variable tofalse✨ Improvements
🐛 Fixes
BUILDKIT_PROGRESSby @ndeloof in #12894pulldoes not requireenv_filebeing resolved by @ndeloof in #12904🔧 Internal
⚙️ Dependencies
New Contributors
Full Changelog: docker/compose@v2.36.2...v2.37.0
v2.36.2Compare Source
What's Changed
🐛 Fixes
up --buildwith additional_context dependency by @ndeloof in #12863🔧 Internal
up --builde2e test by @ndeloof in #12864⚙️ Dependencies
Full Changelog: docker/compose@v2.36.1...v2.36.2
v2.36.1Compare Source
What's Changed
✨ Improvements
debugmessages in the communication between Compose … by @glours in #12826--lock-image-digestsby @ndeloof in #12843🐛 Fixes
.exeto provider name doing executable lookup on windows by @ndeloof in #12832🔧 Internal
⚙️ Dependencies
Full Changelog: docker/compose@v2.36.0...v2.36.1
v2.36.0Compare Source
What's Changed
🎉 You can now use external binaries as service provider to extend Compose behaviour. For more information about creating your own plugin check the documentation
✨ Improvements
networks.interface_nameby @ndeloof in #12771COMPOSE_PROGRESSenv variable by @AnvarU in #12769--checkby @ndeloof in #12765🐛 Fixes
--printoutput to stdout by @emersion in #12756Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.