Skip to content

fix: a few bugs/security concerns#3360

Closed
LukasParke wants to merge 2 commits intoDokploy:canaryfrom
LukasParke:addressing-security-issues
Closed

fix: a few bugs/security concerns#3360
LukasParke wants to merge 2 commits intoDokploy:canaryfrom
LukasParke:addressing-security-issues

Conversation

@LukasParke
Copy link
Copy Markdown

@LukasParke LukasParke commented Dec 29, 2025

  • Introduced a Zod schema for validating Docker container IDs in the docker router.
  • Updated WebSocket server to validate container IDs and shell types before execution.
  • Improved shell command safety by escaping container IDs and shell types in various services.
  • Added log path validation to prevent path traversal vulnerabilities in deployment and mount services.

What is this PR about?

This PR is addressing a few places in the code base that seemingly could use a bit more validation given the context and the way that commands are templated out to run on the host machine.

There are a few places where command injection could be possible, and a few other places where some possible bugs were found in things like JSON parsing, or unexpected sleep behavior.

Checklist

Before submitting this PR, please make sure that:

…afety

- Introduced a Zod schema for validating Docker container IDs in the docker router.
- Updated WebSocket server to validate container IDs and shell types before execution.
- Improved shell command safety by escaping container IDs and shell types in various services.
- Added log path validation to prevent path traversal vulnerabilities in deployment and mount services.
@LukasParke LukasParke marked this pull request as ready for review December 29, 2025 19:44
@LukasParke LukasParke changed the title refactor(docker): enhance container ID validation and shell command s… fix: a few bugs/security concerns Dec 29, 2025
@Siumauricio
Copy link
Copy Markdown
Contributor

Hi, thank you for submitting this, this was already fixed in previous version, so we can close this for now

@Siumauricio Siumauricio closed this Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants