Docker Compose v2.40.3 - Release Notes & Engineering Impact
Component: docker-compose · Channel: stable. Automated analysis, not a compatibility certification. How this works.
Analysis updated: 2026-11-21.
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.
💻 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.