A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-45631

CVE-2026-45631: Dokploy Auth Bypass Vulnerability

CVE-2026-45631 is an authentication bypass flaw in Dokploy that allows attackers to forge JWTs and gain admin access via a hardcoded secret. This article covers the technical details, affected versions, and mitigation.

Published: June 4, 2026

CVE-2026-45631 Overview

CVE-2026-45631 is a hardcoded credential vulnerability in Dokploy, a free, self-hostable Platform as a Service (PaaS). Versions from 0.27.0 to before 0.29.3 ship with a hardcoded BETTER_AUTH_SECRET fallback value of better-auth-secret-123456789. An unauthenticated attacker who knows this secret can forge email verification JSON Web Tokens (JWTs), trigger an auto-sign-in as the administrator, and then execute arbitrary commands on the host through the built-in SSH terminal. The flaw is tracked as [CWE-798: Use of Hard-coded Credentials]. Dokploy resolved the issue in version 0.29.3.

Critical Impact

An unauthenticated network attacker can forge authentication tokens, sign in as admin, and execute arbitrary commands on the underlying host, resulting in full compromise of the Dokploy server.

Affected Products

  • Dokploy 0.27.0 through versions prior to 0.29.3
  • Self-hosted Dokploy deployments relying on the default BETTER_AUTH_SECRET
  • Dokploy-managed hosts exposing the built-in SSH terminal feature

Discovery Timeline

  • 2026-05-29 - CVE-2026-45631 published to the National Vulnerability Database (NVD)
  • 2026-06-01 - Last updated in the NVD database

Technical Details for CVE-2026-45631

Vulnerability Analysis

Dokploy uses the better-auth library to issue and validate session and verification tokens. When the BETTER_AUTH_SECRET environment variable is not explicitly set, the application falls back to a hardcoded string, better-auth-secret-123456789. Because this fallback is embedded in source code, any attacker can reproduce it and sign JWTs that the server treats as authentic.

The attacker forges an email verification JWT for the administrator account. Dokploy's verification flow accepts the token, marks the email as verified, and triggers an auto-sign-in. The attacker now holds an admin session.

The Dokploy console exposes a built-in SSH terminal for managing the host and deployed services. With administrator privileges, the attacker uses this terminal to run arbitrary shell commands, achieving remote code execution on the underlying server.

Root Cause

The root cause is the inclusion of a hardcoded secret as a fallback value in the authentication configuration. Secrets used to sign JWTs must be unique, high-entropy, and never present in source code. Shipping a default string allows any reader of the repository to derive a working signing key for every vulnerable deployment.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker reaches the Dokploy authentication endpoint over HTTP(S), submits a forged email verification JWT signed with the known fallback secret, and receives an authenticated admin session in response. The attacker then issues commands through the built-in SSH terminal endpoint. Because privilege boundaries are crossed from unauthenticated network user to administrator on the host, the scope of impact extends beyond the application to the operating system.

No public proof-of-concept code is referenced in the advisory. Technical details are available in the GitHub Security Advisory GHSA-w3gm-rc4p-9rhj and the remediation pull request.

Detection Methods for CVE-2026-45631

Indicators of Compromise

  • Unexpected successful email verification events for administrator accounts followed by immediate session creation from unfamiliar IP addresses.
  • New or unexpected SSH terminal sessions initiated from the Dokploy web UI shortly after an authentication event.
  • Outbound network connections, file writes, or new processes spawned by the Dokploy service account that do not match deployment activity.
  • Presence of the literal string better-auth-secret-123456789 in the running configuration or environment of any Dokploy instance.

Detection Strategies

  • Inspect Dokploy application logs for verification token submissions that succeed without a preceding user-initiated registration or password reset.
  • Correlate admin login events with the source IP and user-agent baseline; flag deviations.
  • Monitor for shell commands executed under the Dokploy host process tree, particularly commands that download tooling, modify cron, or alter SSH keys.

Monitoring Recommendations

  • Enable centralized logging of authentication, session creation, and terminal command events from Dokploy to a SIEM or data lake.
  • Alert on any process spawned by Dokploy that invokes curl, wget, bash -i, nc, or interpreter shells.
  • Track configuration drift on the BETTER_AUTH_SECRET value across all environments to confirm it is non-default and rotated.

How to Mitigate CVE-2026-45631

Immediate Actions Required

  • Upgrade Dokploy to version 0.29.3 or later on every host without delay.
  • Set BETTER_AUTH_SECRET to a unique, cryptographically random value of at least 32 bytes and restart the service.
  • Invalidate all existing sessions and verification tokens, then force password resets for administrator accounts.
  • Audit the host for unauthorized SSH keys, cron jobs, new users, and outbound connections established since 0.27.0 was deployed.

Patch Information

The vulnerability is fixed in Dokploy 0.29.3. The fix removes the hardcoded fallback and requires operators to supply an explicit BETTER_AUTH_SECRET. Review the upstream pull request #4374 and the GitHub Security Advisory GHSA-w3gm-rc4p-9rhj for the full code change and upgrade guidance.

Workarounds

  • If immediate upgrade is not possible, explicitly set a strong, random BETTER_AUTH_SECRET in the environment so the hardcoded fallback is never used.
  • Restrict network exposure of the Dokploy management UI to trusted administrative networks or a VPN until the patch is applied.
  • Disable or firewall the built-in SSH terminal endpoint to limit post-authentication command execution paths.
bash
# Configuration example: set a strong BETTER_AUTH_SECRET before starting Dokploy
export BETTER_AUTH_SECRET="$(openssl rand -hex 32)"
# Persist across reboots (systemd drop-in)
sudo mkdir -p /etc/systemd/system/dokploy.service.d
cat <<EOF | sudo tee /etc/systemd/system/dokploy.service.d/override.conf
[Service]
Environment="BETTER_AUTH_SECRET=$(openssl rand -hex 32)"
EOF
sudo systemctl daemon-reload
sudo systemctl restart dokploy

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechDokploy

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-798
  • Technical References
  • GitHub Pull Request

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-43917: Dokploy Auth Bypass Vulnerability

  • CVE-2026-24840: Dokploy Auth Bypass Vulnerability

  • CVE-2026-45632: Dokploy Schedule Router RCE Vulnerability

  • CVE-2026-45662: Dokploy Registry Deletion RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English