CVE-2025-34157 Coolify Stored Cross-Site Scripting (XSS) in Project Name Field

Critical 9.4 Published Updated

Low-privilege users can inject JavaScript via project names, leading to admin session hijacking and full instance compromise in Coolify.

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-34157?

CVE-2025-34157 is a critical cross-site scripting vulnerability in coolLabs Technologies Coolify, published on 27 Aug 2025. 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 versions prior to 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 can create a project with a maliciously crafted name containing embedded JavaScript. When an administrator attempts to delete the project or its associated resource, the payload executes in the admin’s browser context. This results in full compromise of the Coolify instance, including theft of API tokens, session cookies, and access to WebSocket-based terminal sessions on managed servers.

Weakness: CWE-79, CWE-20

Which versions are affected by CVE-2025-34157?

It affects 1 product.

Products include Coollabs Coolify.

How do I fix CVE-2025-34157?

No fix has been published for CVE-2025-34157 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-34157 being exploited?

There is no known exploitation of CVE-2025-34157 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-6p37-qg9q-mprw.

Is CVE-2025-34157 in your software?

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

Check your SBOMs for free