CVE-2026-39390: ci4-cms-erp CI4MS stored XSS in Google Maps iframe setting

CVE-2026-39390 · Severity: medium · CVSS 5.5 · Published 2026-04-08

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.

Technologies: ci4-cms-erp/ci4ms (Packagist). Vendors: Packagist.

Quick answers

Is CVE-2026-39390 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-39390 being exploited in the wild.
How severe is CVE-2026-39390?
Medium severity, with a CVSS score of 5.5, published 8 April 2026.
Which products and versions are affected?
ci4-cms-erp/ci4ms (Packagist) ECOSYSTEM:introduced=0,fixed=0.31.4.0.
Is there a fix for CVE-2026-39390?
Yes. ci4-cms-erp/ci4ms (Packagist): upgrade to 0.31.4.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-39390 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-39390?
Check whether you run ci4-cms-erp/ci4ms (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • ci4-cms-erp/ci4ms (Packagist): upgrade to 0.31.4.0 or later
    composer require ci4-cms-erp/ci4ms:^0.31.4.0

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

Identifiers

  • CVE-2026-39390
  • GHSA-x3hr-cp7x-44r2

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

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.