The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2025-59158

CVE-2025-59158: Coolify Stored XSS Vulnerability

CVE-2025-59158 is a stored XSS flaw in Coolify that allows low-privilege users to inject malicious JavaScript into project names, executing code in admin browsers. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-59158 Overview

CVE-2025-59158 is a stored Cross-Site Scripting (XSS) vulnerability in Coolify, an open-source and self-hostable tool for managing servers, applications, and databases. The vulnerability exists in the project creation workflow where an authenticated user with low privileges (e.g., member role) can create a project with a maliciously crafted name containing embedded JavaScript. When an administrator later attempts to delete the project or its associated resource, the payload automatically executes in the admin's browser context, potentially leading to privilege escalation and account compromise.

Critical Impact

This stored XSS vulnerability enables low-privileged users to escalate privileges by executing arbitrary JavaScript in administrator browser sessions, potentially leading to full administrative account takeover.

Affected Products

  • Coolify versions prior to and including v4.0.0-beta.420.6
  • Self-hosted Coolify instances running vulnerable versions
  • Multi-user Coolify deployments with member-level access

Discovery Timeline

  • 2026-01-05 - CVE CVE-2025-59158 published to NVD
  • 2026-01-08 - Last updated in NVD database

Technical Details for CVE-2025-59158

Vulnerability Analysis

This stored XSS vulnerability (CWE-116: Improper Encoding or Escaping of Output) affects Coolify's project creation workflow. The application fails to properly sanitize or encode user-supplied input in project names before rendering them in administrative interfaces. This allows an attacker with basic member-level access to inject malicious JavaScript payloads that persist in the database and execute whenever an administrator interacts with the compromised project entry.

The attack is particularly dangerous because it targets privileged users performing routine administrative tasks. When an administrator attempts to delete a project or manage its associated resources, the stored payload executes with the administrator's session context, potentially allowing the attacker to perform actions as the admin, steal session tokens, or further compromise the system.

Root Cause

The root cause is improper encoding or escaping of output (CWE-116) in Coolify's project management interface. The application accepts user input for project names but fails to properly encode special characters and HTML/JavaScript content before rendering this data in the browser. This allows embedded script tags and event handlers to be interpreted as executable code rather than being safely displayed as text.

Attack Vector

The attack follows a privilege escalation pattern through stored XSS:

  1. Initial Access: An authenticated user with member-level privileges creates a new project through the legitimate project creation workflow
  2. Payload Injection: The attacker crafts a project name containing malicious JavaScript, such as embedded <script> tags or event handlers
  3. Persistence: The malicious payload is stored in the application's database without proper sanitization
  4. Execution Trigger: When an administrator views the project list or attempts to delete the compromised project, the malicious JavaScript executes in their browser
  5. Privilege Escalation: The payload can steal administrator session tokens, perform administrative actions, or create new admin accounts

The vulnerability requires user interaction (an administrator must interact with the poisoned project entry), but the low barrier to entry for authenticated users and the high-privilege target makes this a significant risk. For detailed technical information about the vulnerability mechanism, refer to the GitHub Security Advisory.

Detection Methods for CVE-2025-59158

Indicators of Compromise

  • Unusual project names containing HTML tags, script elements, or JavaScript event handlers (e.g., onerror, onload, onclick)
  • Database entries in project tables containing encoded or unencoded script payloads
  • Administrator session anomalies or unexpected administrative actions following project management activities
  • Browser console errors related to blocked scripts or Content Security Policy violations on the Coolify admin interface

Detection Strategies

  • Implement web application firewall (WAF) rules to detect XSS patterns in HTTP POST requests to project creation endpoints
  • Enable Content Security Policy (CSP) headers and monitor for CSP violation reports
  • Deploy browser-based XSS detection mechanisms and audit project name fields for suspicious content patterns
  • Review application logs for project creation events with abnormally long or encoded project names

Monitoring Recommendations

  • Configure alerts for project creation events from member-level accounts that contain special characters or script-like patterns
  • Monitor administrator sessions for unexpected API calls or state changes immediately following project deletion operations
  • Implement database integrity monitoring to detect malicious content in project name fields
  • Enable SentinelOne's web application protection capabilities to detect and block XSS payload execution attempts

How to Mitigate CVE-2025-59158

Immediate Actions Required

  • Upgrade Coolify to version 4.0.0-beta.420.7 or later immediately
  • Audit existing project names in the database for suspicious or malicious content
  • Review recent project creation activity from member-level accounts for potential attack attempts
  • Implement Content Security Policy headers as a defense-in-depth measure

Patch Information

Coolify version 4.0.0-beta.420.7 contains the official patch for this vulnerability. The patch implements proper output encoding for project names, ensuring that user-supplied content is safely escaped before being rendered in the browser. Organizations should prioritize upgrading to this version or later. Additional details about the fix can be found in the GitHub Security Advisory.

Workarounds

  • Temporarily restrict project creation privileges to trusted administrators only until the patch can be applied
  • Implement a reverse proxy or WAF rule to sanitize project names and block requests containing script tags or event handlers
  • Manually audit and sanitize existing project names in the database to remove any potentially malicious content
  • Enable strict Content Security Policy headers to mitigate the impact of any successful XSS injection
bash
# Example CSP header configuration for defense-in-depth
# Add to your reverse proxy or web server configuration
Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; object-src 'none'; base-uri 'self'; form-action 'self';

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechCoolify

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-116
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-59156: Coolify RCE Vulnerability

  • CVE-2025-59157: Coolify Command Injection RCE Vulnerability

  • CVE-2025-59955: Coolify Information Disclosure Flaw

  • CVE-2025-64420: Coolify Information Disclosure Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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