Docker Compose v2.40.3stable Released Oct 30, 2025
Impact Score: 3/10

Docker Compose v2.40.3 - Release Notes & Engineering Impact

Source available - automated, not human-reviewed

Component: docker-compose · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-21.

Compatibility not verified - check source notes
📄 .MD
⚡ Executive Summary (TL;DR)

Docker Compose v2.40.3 fixes several important bugs including a path traversal vulnerability in the git remote loader and issues with OCI compose overrides. It also updates compose-go to v2.9.1.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Upgrade immediately to benefit from bug fixes for OCI overrides, command execution options, and hook execution on restarts.

📊 Product & Engineering Leads

This patch release focuses on stability and security, ensuring smoother execution of container workflows without functional disruptions.

⚙️ DevOps & Security

Deploy this update to resolve a path traversal vulnerability in the git remote loader and prevent panics in prompt implementations.

⚡ Performance & Enhancements (1)

  • Bump compose-go to version v2.9.1

🔧 Bug Fixes & Patches (6)

  • Fix OCI compose override support
  • Fix help output for "exec --no-tty" option
  • Prompt default implementation to prevent a panic
  • Run hooks on restart
  • Ensure images exist only for the target service in run command
  • Fix path traversal vulnerability in git remote loader

❓ Frequently Asked Questions

Does Docker Compose v2.40.3 contain breaking changes?

No, there are no documented breaking changes in this release.

What is the primary highlight of v2.40.3?

The primary highlight is a set of critical bug fixes, including a patch for a path traversal vulnerability in the git remote loader and fixes for OCI compose override support.

How should teams prepare to upgrade to v2.40.3?

Teams can upgrade normally as part of routine maintenance since this release contains only fixes and dependency updates.

📄 View Raw Release Notes (Original Developer Log)
## What's Changed ### 🐛 Fixes * Fix OCI compose override support by @ndeloof https://github.com/docker/compose/pull/13311 * Fix help output for "exec --no-tty" option by @tonyo https://github.com/docker/compose/pull/13314 * Prompt default implementation to prevent a panic by @ndeloof https://github.com/docker/compose/pull/13317 * Run hooks on restart by @ndeloof https://github.com/docker/compose/pull/13321 * Fix(run): Ensure images exist only for the target service in run command by @idsulik https://github.com/docker/compose/pull/13325 * Fix(git): Fix path traversal vulnerability in git remote loader by @idsulik https://github.com/docker/compose/pull/13331 ### 🔧 Internal * Test to check writeComposeFile detects invalid OCI artifact by @ndeloof https://github.com/docker/compose/pull/13309 * Code Cleanup by @ndeloof https://github.com/docker/compose/pull/13315 ### ⚙️ Dependencies * Bump compose-go to version v2.9.1 by @glours https://github.com/docker/compose/pull/13332 **Full Changelog**: https://github.com/docker/compose/compare/v2.40.2...v2.40.3