CVE-2026-39390: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in ci4-cms-erp ci4ms
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.
AI Analysis
Technical Summary
The vulnerability in ci4ms (versions before 0.31.4.0) arises from improper input neutralization in the Google Maps iframe setting (cMap field) within the compInfosPost() function. Although input is sanitized using strip_tags() with an iframe allowlist and regex-based removal of on\w+ event handlers, the srcdoc attribute is not treated as an event handler and bypasses these filters. An attacker with administrative privileges can inject an iframe with a srcdoc attribute containing HTML-entity-encoded JavaScript, which executes in the parent page context when viewed by unauthenticated users. This cross-site scripting flaw allows limited confidentiality and integrity impact but does not affect availability. The issue is resolved in version 0.31.4.0.
Potential Impact
An attacker with admin-level access can inject malicious JavaScript via the srcdoc attribute in an iframe, which executes in the context of the parent page for unauthenticated frontend visitors. This can lead to partial confidentiality and integrity compromise of the affected application environment. There is no impact on availability. The vulnerability requires high privileges (admin access) to exploit and does not involve user interaction.
Mitigation Recommendations
This vulnerability is fixed in ci4ms version 0.31.4.0. Users should upgrade to version 0.31.4.0 or later to remediate this issue. No other official remediation or temporary fixes are documented. Since this is not a cloud service, patching the affected software version is required to mitigate the risk.
CVE-2026-39390: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in ci4-cms-erp ci4ms
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in ci4ms (versions before 0.31.4.0) arises from improper input neutralization in the Google Maps iframe setting (cMap field) within the compInfosPost() function. Although input is sanitized using strip_tags() with an iframe allowlist and regex-based removal of on\w+ event handlers, the srcdoc attribute is not treated as an event handler and bypasses these filters. An attacker with administrative privileges can inject an iframe with a srcdoc attribute containing HTML-entity-encoded JavaScript, which executes in the parent page context when viewed by unauthenticated users. This cross-site scripting flaw allows limited confidentiality and integrity impact but does not affect availability. The issue is resolved in version 0.31.4.0.
Potential Impact
An attacker with admin-level access can inject malicious JavaScript via the srcdoc attribute in an iframe, which executes in the context of the parent page for unauthenticated frontend visitors. This can lead to partial confidentiality and integrity compromise of the affected application environment. There is no impact on availability. The vulnerability requires high privileges (admin access) to exploit and does not involve user interaction.
Mitigation Recommendations
This vulnerability is fixed in ci4ms version 0.31.4.0. Users should upgrade to version 0.31.4.0 or later to remediate this issue. No other official remediation or temporary fixes are documented. Since this is not a cloud service, patching the affected software version is required to mitigate the risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-06T22:06:40.516Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d737041cc7ad14da419528
Added to database: 4/9/2026, 5:20:04 AM
Last enriched: 4/9/2026, 5:27:00 AM
Last updated: 4/10/2026, 7:41:20 AM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.