{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0.27.0"
              },
              {
                "fixed": "0.29.3"
              },
              {
                "introduced": "0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION"
            ]
          },
          "events": [
            {
              "introduced": "17da1d5b3ca4e32f6e380dc2997f914de9874260"
            },
            {
              "fixed": "62aeed5aedd757e75cf3da8ae49fb96e328d8d0d"
            }
          ],
          "repo": "https://github.com/dokploy/dokploy",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-w3gm-rc4p-9rhj"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-798"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45631.json"
  },
  "details": "Dokploy is a free, self-hostable Platform as a Service (PaaS). From 0.27.0 to before 0.29.3, a hardcoded BETTER_AUTH_SECRET fallback (\"better-auth-secret-123456789\") lets an unauthenticated attacker forge email verification JWTs, trigger auto-sign-in as admin, and execute commands on the host via the built-in SSH terminal. This vulnerability is fixed in 0.29.3.",
  "id": "CVE-2026-45631",
  "modified": "2026-08-12T03:51:21.709693397Z",
  "published": "2026-05-29T16:13:59.525Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45631.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/Dokploy/dokploy/security/advisories/GHSA-w3gm-rc4p-9rhj"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45631"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Dokploy/dokploy/pull/4374"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Dokploy: Pre-Auth Admin Takeover via Hardcoded Authentication Secret"
}