Executive brief
CI4MS, a content management system based on CodeIgniter 4, contains a security flaw in how it handles Google Maps integration settings. An attacker with administrative access can save a malicious map configuration that includes hidden scripts. When regular visitors view the website's contact or footer pages, these scripts execute in their browsers, potentially allowing the attacker to steal session information or redirect users to fraudulent sites.
Technical details
A stored cross-site scripting (XSS) vulnerability exists in the `compInfosPost()` function within `modules/Settings/Controllers/Settings.php`. While the application attempts to sanitize the `cMap` field using `strip_tags()` and a regex-based blocklist for `on*` event handlers, it fails to filter the `srcdoc` attribute. An attacker with administrative privileges can inject an `<iframe>` containing a `srcdoc` attribute with HTML-entity-encoded JavaScript. Because `srcdoc` iframes inherit the parent's origin by default, the injected script executes in the context of the frontend site when rendered, bypassing the trust boundary between the admin backend and the public frontend. This issue is resolved in version 0.31.4.0.
Affected products
- ci4-cms-erp CI4MS < 0.31.4.0
Timeline
- 2026-04-07: advisory: GitHub Security Advisory published
- 2026-04-08: disclosed: CVE-2026-39390 published to NVD
- 2026-04-08: patched: Fix released in version 0.31.4.0