# CVE-2026-39392: ci4-cms-erp CI4MS stored XSS in Pages module

Source: https://junglewise.ai/threats/cve-2026-39392-ci4-cms-erp-ci4ms-stored-xss-in-pages-module  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-08. Updated: 2026-07-24  
License: CC BY 4.0 with a link back

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

CI4MS, a content management system based on CodeIgniter 4, contains a security flaw in its page-editing module. An authorized administrator can save malicious scripts into a web page, which will then automatically execute in the browsers of any public visitor who views that page. This could lead to the theft of visitor session cookies, website defacement, or the redirection of users to malicious websites.

Technologies: [ci4-cms-erp/ci4ms (Packagist)](https://junglewise.ai/threats/technologies/ci4-cms-erp-ci4ms). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2026-39392 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-39392 being exploited in the wild.

**How severe is CVE-2026-39392?** 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-39392?** 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-39392 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-39392?** 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

  ```sh
  composer require ci4-cms-erp/ci4ms:^0.31.4.0
  ```


## Technical details

A stored cross-site scripting (XSS) vulnerability exists in the Pages module of CI4MS due to the omission of the 'html_purify' validation rule in the create and update methods of the Pages controller. While the Blog module correctly sanitizes input, the Pages module stores raw HTML content in the database and subsequently renders it on the frontend using unescaped output (echo $pageInfo->content). An attacker with administrative privileges can exploit this to inject arbitrary JavaScript. Because the script executes in the context of other users' sessions (including other admins and public visitors), the vulnerability results in a scope change (S:C). The issue is resolved in version 0.31.4.0 by applying the proper validation rules.

## Affected products

- ci4-cms-erp CI4MS < 0.31.4.0

## Identifiers

- CVE-2026-39392
- GHSA-fjpj-6qcq-6pw2

## Timeline

- 2026-04-07: advisory: GitHub Security Advisory published
- 2026-04-08: disclosed: CVE published to NVD
- 2026-04-08: patched: Vulnerability fixed in version 0.31.4.0

## References

- [https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-fjpj-6qcq-6pw2](https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-fjpj-6qcq-6pw2)

## Related threats

- [ci4-cms-erp CI4MS stored XSS in Pages module](https://junglewise.ai/threats/cve-2026-45270-ci4-cms-erp-ci4ms-stored-xss-in-pages-module)
- [ci4-cms-erp CI4MS file deletion and rename in Fileeditor module](https://junglewise.ai/threats/cve-2026-45139-ci4-cms-erp-ci4ms-file-deletion-and-rename-in-fileeditor-module)
- [ci4-cms-erp ci4ms stored XSS in Blog and Pages content](https://junglewise.ai/threats/cve-2026-45138-ci4-cms-erp-ci4ms-stored-xss-in-blog-and-pages-content)
- [CI4MS has a Deactivated User Session Bypass (active=0)](https://junglewise.ai/threats/cve-2026-41891-ci4ms-has-a-deactivated-user-session-bypass-active-0)
- [CI4MS Vulnerable to Arbitrary Database Table Drop via Theme deleteProcess](https://junglewise.ai/threats/cve-2026-41890-ci4ms-vulnerable-to-arbitrary-database-table-drop-via-theme)
