Skip to main content

CVE-2025-0660: Concrete CMS Stored XSS Vulnerability

CVE-2025-0660 is a stored cross-site scripting vulnerability in Concrete CMS that allows rogue administrators to inject malicious scripts through folder names. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-0660 Overview

CVE-2025-0660 is a stored Cross-Site Scripting (XSS) vulnerability in Concrete CMS versions 9.0.0 through 9.3.9. The flaw resides in the "Add Folder" functionality, which fails to sanitize input before storing folder names. An authenticated administrator can inject JavaScript payloads as folder names, which then execute in the browser of any user who views the affected folder listing. The vulnerability is tracked under [CWE-20] Improper Input Validation and [CWE-79] Improper Neutralization of Input During Web Page Generation. Concrete CMS versions below 9.0.0 are not affected.

Critical Impact

A rogue or compromised administrator can persist JavaScript in the file manager folder structure to hijack sessions, exfiltrate data, or escalate actions in the browser context of other users.

Affected Products

  • Concrete CMS 9.0.0 through 9.3.9
  • Concrete CMS concretecms:concrete_cms package
  • Bedrock front-end component (patched via upstream pull request)

Discovery Timeline

  • Vulnerability reported by Alfin Joseph to the Concrete CMS security team
  • 2025-03-10 - CVE-2025-0660 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-0660

Vulnerability Analysis

The vulnerability is a stored XSS in the file manager's folder creation workflow. When an administrator creates a folder through the "Add Folder" dialog, the application accepts the submitted folder name without applying HTML or JavaScript sanitization. The unsanitized value is persisted to the backend and later rendered into pages that list folder contents.

Because the payload is stored, it executes every time a user navigates to the affected location. The attacker must hold administrator privileges to create folders, which limits exploitation to insider threats, compromised admin accounts, or scenarios where multiple admin tiers exist. User interaction is required: a victim must view the folder listing in the dashboard for the payload to fire.

Root Cause

The root cause is missing input validation and output encoding on the folder name field within the file manager component. The server-side handler stores the raw string, and the rendering template outputs it into the Document Object Model (DOM) without contextual escaping. This combination maps directly to [CWE-79] and [CWE-20].

Attack Vector

Exploitation requires network access to the Concrete CMS dashboard and valid administrator credentials. The attacker opens the file manager, invokes "Add Folder," and supplies a folder name containing a JavaScript payload. When another authenticated user, including higher-privileged administrators, browses the file manager, the payload executes in their session context. Successful exploitation can lead to session token theft, administrative action forgery, or redirection to attacker-controlled infrastructure. See the Concrete CMS Pull Request #12454 and Bedrock Pull Request #370 for the technical fix.

Detection Methods for CVE-2025-0660

Indicators of Compromise

  • Folder names in the Concrete CMS file manager containing HTML tags, <script> blocks, event handlers such as onerror= or onload=, or javascript: URIs.
  • Database rows in the file manager folder tables where the folder name field contains angle brackets or encoded JavaScript.
  • Dashboard page loads that trigger unexpected outbound HTTP requests to unknown domains from an administrator session.

Detection Strategies

  • Review audit logs for Add Folder actions performed by administrator accounts and correlate against expected content workflows.
  • Query the file manager data store for folder names matching regular expressions that detect HTML or JavaScript syntax.
  • Deploy a Content Security Policy (CSP) in report-only mode to surface inline script execution originating from the dashboard.

Monitoring Recommendations

  • Alert on administrative account creation of folders with non-alphanumeric characters outside an approved allowlist.
  • Monitor browser-side errors and CSP violation reports generated when authenticated users load file manager views.
  • Track anomalous session activity following folder creation events, including unexpected privilege changes or password resets.

How to Mitigate CVE-2025-0660

Immediate Actions Required

  • Upgrade Concrete CMS to version 9.4.0 or later, which contains the sanitization fix referenced in the 9.4.0 release notes.
  • Audit existing folder names in the file manager and remove or rename any entries containing HTML or script syntax.
  • Review administrator accounts, rotate credentials, and remove unused privileged accounts to reduce the attack surface.

Patch Information

The fix is delivered in Concrete CMS 9.4.0 via Pull Request #12454 and the companion Bedrock Pull Request #370. Administrators should apply the official upstream release rather than backporting manually. Confirm the installed version from the dashboard after patching.

Workarounds

  • Restrict administrator role assignments to a minimal set of trusted operators until the upgrade is applied.
  • Enforce a strict Content Security Policy that blocks inline script execution within the Concrete CMS dashboard.
  • Place the admin dashboard behind an authentication proxy or IP allowlist to reduce exposure of the vulnerable endpoint.
bash
# Example CSP header to block inline script execution in the Concrete CMS dashboard
Content-Security-Policy: default-src 'self'; \
  script-src 'self'; \
  object-src 'none'; \
  base-uri 'self'; \
  frame-ancestors 'self'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.