Junglewise Threat Intelligence

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

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

Technologies: ci4-cms-erp/ci4ms (Packagist), Ci4-Cms-Erp Ci4ms. Vendors: Packagist.

Executive brief

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.

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

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

Related threats