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-61674 Overview
CVE-2025-61674 is a stored cross-site scripting (XSS) vulnerability in October CMS, a PHP-based content management system and web platform. The flaw exists in the backend configuration forms, specifically in the Markup Styles stylesheet input. A user holding the Global Editor Settings permission can inject malicious HTML or JavaScript that escapes the intended <style> context. Once injected, the payload executes across backend pages for every authenticated user who loads the affected view. The vendor fixed the issue in October CMS versions 3.7.13 and 4.0.12. The weakness is tracked as CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
An authenticated backend user with Global Editor Settings privileges can execute arbitrary JavaScript in the browser context of other backend users, enabling session misuse, administrative action hijacking, and lateral access within the CMS.
Affected Products
- October CMS versions prior to 3.7.13
- October CMS 4.x versions prior to 4.0.12
- Deployments exposing the backend Markup Styles configuration
Discovery Timeline
- 2026-01-10 - CVE-2025-61674 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-61674
Vulnerability Analysis
The vulnerability is a stored XSS in October CMS backend configuration forms. The Markup Styles input accepts stylesheet content that is later rendered inside a <style> tag on backend pages. The application fails to neutralize characters that terminate the style context, so an attacker can close the <style> element and inject arbitrary HTML or <script> payloads. Because the injected content is persisted and rendered to every backend user viewing those pages, the payload runs with the privileges of the viewing session.
Exploitation requires an authenticated backend account that holds the Global Editor Settings permission, which limits the pool of potential attackers to privileged users or compromised accounts. User interaction is required because victims must load an affected backend page. The scope changes from the attacker's authorization boundary to that of other backend users, including administrators.
Root Cause
The root cause is improper output encoding of user-controlled stylesheet content embedded directly inside a <style> element. Input containing sequences such as </style> was not sanitized or escaped, allowing attackers to break out of the CSS context and introduce new HTML or JavaScript nodes.
Attack Vector
The attack is delivered over the network through the authenticated October CMS backend. An attacker with Global Editor Settings permission submits a crafted stylesheet value to the Markup Styles field. When any backend user subsequently loads a page that renders the stored styles, the browser parses the injected markup and executes attacker-controlled JavaScript under the victim's session. See the GitHub Security Advisory GHSA-gxxc-m74c-f48x for additional details.
Detection Methods for CVE-2025-61674
Indicators of Compromise
- Markup Styles configuration entries containing </style>, <script>, event handler attributes, or other HTML tokens.
- Unexpected modifications to backend configuration records by accounts with Global Editor Settings privileges.
- Backend page responses that include script content originating from stored settings rather than application templates.
Detection Strategies
- Review backend audit logs for changes to Markup Styles made by non-administrative or newly privileged accounts.
- Scan the October CMS database for stored stylesheet values containing HTML control characters or script tokens.
- Inspect browser developer tools for unexpected inline scripts rendered within the backend <head> or configuration-driven sections.
Monitoring Recommendations
- Alert on configuration form submissions that include <, >, or script tokens in style-related fields.
- Monitor authentication and privilege assignment events for the Global Editor Settings role.
- Capture outbound HTTP requests from backend sessions that could indicate token exfiltration from an active XSS payload.
How to Mitigate CVE-2025-61674
Immediate Actions Required
- Upgrade October CMS to version 3.7.13 or 4.0.12 or later as published in the vendor advisory.
- Audit which backend accounts hold the Global Editor Settings permission and revoke access that is not required.
- Inspect existing Markup Styles values for injected HTML or JavaScript and remove any malicious content.
- Rotate backend user sessions and credentials if evidence suggests prior exploitation.
Patch Information
The October CMS maintainers addressed the issue in versions 3.7.13 and 4.0.12. Patch details and remediation guidance are available in the GitHub Security Advisory GHSA-gxxc-m74c-f48x. Apply the vendor update through Composer or the standard October CMS update workflow.
Workarounds
- Restrict the Global Editor Settings permission to a minimal set of trusted administrators until the patch is applied.
- Place the backend behind network controls such as VPN or IP allowlists to reduce exposure of privileged accounts.
- Deploy a web application firewall rule that blocks HTML control characters in Markup Styles submissions.
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

