Hi CVE-2025-62725 has been public/fixed since October 2025.
I’m running nixos 25.11.5672.2db38e08fdad (Xantusia) and just ran sudo nixos-rebuild switch --upgrade and my docker compose is still 2.39.4 and the issue was fixed in v2.40.2.
I think the lack of any indication in the changelog made it non-trivial to discover the CVE. It was published three days after the 2.40.2 release. And what complicates the matter is that docker-compose has no maintainer listed in nixpkgs.
You can see the progress on this PR at Making sure you're not a bot! - it’s in 25.11-small (which advances sooner) but not yet in 25.11 (which requires more tests)
The channel progresses when our testsuite successfully completes. You can see the status of those testsuites at https://status.nixos.org/ - as you can see 25.11-small and 25.11 itself both succeeded yesterday, but on different commits. Looking at the details in Making sure you're not a bot! it looks like it’ll probably pick it up in 1 or 2 days.