/

CVE-2026-128329

Severity:

HIGH RISK

(7.7)

Path Traversal (CWE-22) in Dokploy Repository Reads

CVE-2026-128329

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Sensitive Information Disclosure

Severity:

HIGH RISK

(7.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Dokploy contains a path traversal vulnerability in repository file reads that can allow authenticated organization members with service read permission to access files outside the intended repository path. Depending on the server handling the request, this could expose sensitive files on the Dokploy host or managed remote servers.

Affected context

The issue occurs in Dokploy's patch.readRepoFile functionality when a supplied filePath is used to locate a repository file. It becomes risky when path components are not adequately constrained to the intended repository directory and a requester has the required service read permission.

Exploit preconditions

  • Attack surface: The repository file-reading functionality in Dokploy
  • Required access: Authentication as an organization member with service read permission
  • Trigger point: A request to patch.readRepoFile containing a filePath
  • Why exploitation is possible: Traversal components may cause file access to escape the intended repository path

Why this happens

The underlying issue is insufficient validation or containment of a user-controlled filesystem path. When path traversal sequences are accepted without ensuring that the resolved path remains within an authorized directory, an attacker may access files outside the intended scope. This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').

Potential impact

  • Sensitive system files, such as /etc/shadow, may be disclosed
  • SSH private keys or secret environment files may be exposed
  • Credentials or other secrets could be used to access additional systems
  • Confidentiality of the Dokploy host or managed remote servers could be affected

General mitigation guidance

Defensive patterns focus on constraining file access to explicitly authorized locations:

  • Resolve and canonicalize paths, then verify they remain within the intended repository root
  • Prefer APIs that accept repository-relative identifiers rather than arbitrary filesystem paths
  • Apply strict allowlists for accessible files and reject traversal components
  • Limit service permissions and isolate file-reading operations from sensitive host paths
  • Treat user-supplied paths as untrusted, including when they originate from authenticated users

How teams detect issues like this

  • Use static analysis to identify user-controlled path values passed to filesystem APIs without containment checks
  • Review file-reading code for canonicalization and authorization checks performed before access
  • Monitor requests for traversal-like path components and unusual access to sensitive files
  • Enforce policy checks that restrict repository-reading features to approved directories
  • Automated code review tools can help flag risky path construction and file access patterns

Sources

SourceLink
github.comgithub.com/Dokploy/dokploy/blob/v0.31.0/packages/server/src/services/patch-repo.ts#L148-L181
github.comgithub.com/Dokploy/dokploy/commit/40e818b0e0d8e448e7a30c559ebf4e146e5932ae
github.comgithub.com/Dokploy/dokploy/commit/4b582856b36a0d037ff43ecbed2026d93f22ecc6
github.comgithub.com/Dokploy/dokploy/pull/5899
github.comgithub.com/Dokploy/dokploy/releases/tag/v0.31.1
github.comgithub.com/Dokploy/dokploy/security/advisories/GHSA-g6rj-m32j-2mc4
vulncheck.comvulncheck.com/advisories/dokploy-0.28.0-before-0.31.1-path-traversal-via-patch-readrepofile

Frequently asked

questions

It may be reachable through Dokploy's repository file-reading functionality, but exploitation requires an authenticated account with the specified service read permission.

The described condition requires organization membership and service read permission. The exact exposure also depends on how the Dokploy instance and any managed remote servers are configured.

Constrain resolved file paths to an explicitly authorized repository root, and prefer repository-relative identifiers over arbitrary paths.

Treat all supplied paths as untrusted, enforce containment and authorization checks before file access, and limit the privileges and filesystem scope of services that read files.

Find out what's already
exploitable in your codebase.