Dokploy Nixpacks command injection allows host compromise (CVE-2026-129989)
Authenticated command injection in Dokploy before 0.31.1 via the Nixpacks publishDirectory setting; successful exploitation can compromise the Dokploy host through the privileged Docker environment. Upgrade to 0.31.1 or later.
Overview CVE-2026-129989 affects Dokploy before 0.31.1. The Nixpacks publishDirectory build setting accepts shell metacharacters and is interpolated into a docker cp command executed through child_process.exec. An authenticated user with access to an application can execute arbitrary commands on the Dokploy host when triggering a Nixpacks deployment. Because the application runs in a privileged Docker environment, this can lead to full host compromise.
Impact - Arbitrary command execution on the Dokploy host. - Host compromise through the privileged Docker environment. - Requires an authenticated user with application access.
What to do 1. Upgrade Dokploy to 0.31.1 or later immediately; this issue is fixed in 0.31.1 according to the vendor release and NVD entry. 2. If upgrade is not immediately possible, review the vendor advisory and GitHub security advisory before making changes to production. 3. Restrict access to Nixpacks deployment settings and application-level access to trusted users only. 4. Review audit logs for deployment activity containing suspicious publishDirectory values or unexpected docker cp commands. 5. Monitor the host for signs of post-exploitation activity, especially container breakout or privilege escalation.
Sources - NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-129989 - GitHub commit: https://github.com/Dokploy/dokploy/commit/2cd86b2447daba8fefec1272718d40463e18d6a3 - GitHub PR: https://github.com/Dokploy/dokploy/pull/5911 - Release: https://github.com/Dokploy/dokploy/releases/tag/v0.31.1 - Advisory: https://github.com/Dokploy/dokploy/security/advisories/GHSA-98j8-6vjr-c3xw