CVE-2025-59158 Coolify has Stored XSS in Project Name

Critical 9.4 Published Updated

Low-privilege users can inject JavaScript via project names, executing code in admin browsers during deletion, potentially leading to account takeover.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-59158?

CVE-2025-59158 is a critical cross-site scripting vulnerability in coollabsio coolify, published on 5 Jan 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Coolify versions prior to and including v4.0.0-beta.420.6 are vulnerable to a stored cross-site scripting (XSS) attack in the project creation workflow. 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. Version 4.0.0-beta.420.7 contains a patch for the issue.

Weakness: CWE-79, CWE-116

Which versions are affected by CVE-2025-59158?

It affects 1 product.

Products include Coollabs Coolify.

How do I fix CVE-2025-59158?

No fix has been published for CVE-2025-59158 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-59158 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59158 exists.

Sources

Also known as GHSA-h52r-jxv9-9vhf.

Is CVE-2025-59158 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free