CVE-2026-39392: 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 Pages module does not apply the html_purify validation rule to content fields during create and update operations, while the Blog module does. Page content is stored unsanitized in the database and rendered as raw HTML on the public frontend via echo $pageInfo->content. An authenticated admin with page-editing privileges can inject arbitrary JavaScript that executes in the browser of every public visitor viewing the page. This vulnerability is fixed in 0.31.4.0.
AI Analysis
Technical Summary
The vulnerability exists because the Pages module in ci4ms versions before 0.31.4.0 fails to apply the html_purify validation rule to content fields during create and update operations, unlike the Blog module which does. As a result, page content is stored unsanitized and rendered as raw HTML via echo $pageInfo->content on the public frontend. An authenticated administrator with page-editing rights can exploit this to inject arbitrary JavaScript code, leading to cross-site scripting attacks. The issue is resolved in version 0.31.4.0 by applying proper input sanitization.
Potential Impact
An authenticated admin user with page-editing privileges can inject arbitrary JavaScript code into pages, which will execute in the browsers of all public visitors viewing those pages. This can lead to client-side code execution, potentially compromising user data or session integrity. The CVSS score is 5.5 (medium severity), reflecting limited scope due to the requirement for authenticated admin privileges and no direct impact on availability.
Mitigation Recommendations
Upgrade ci4ms to version 0.31.4.0 or later, where the vulnerability is fixed by applying the html_purify validation rule to page content fields. Since no official patch or temporary fix is separately provided, updating to the fixed version is the recommended remediation. There is no indication that the vulnerability is mitigated otherwise.
CVE-2026-39392: 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 Pages module does not apply the html_purify validation rule to content fields during create and update operations, while the Blog module does. Page content is stored unsanitized in the database and rendered as raw HTML on the public frontend via echo $pageInfo->content. An authenticated admin with page-editing privileges can inject arbitrary JavaScript that executes in the browser of every public visitor viewing the page. This vulnerability is fixed in 0.31.4.0.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists because the Pages module in ci4ms versions before 0.31.4.0 fails to apply the html_purify validation rule to content fields during create and update operations, unlike the Blog module which does. As a result, page content is stored unsanitized and rendered as raw HTML via echo $pageInfo->content on the public frontend. An authenticated administrator with page-editing rights can exploit this to inject arbitrary JavaScript code, leading to cross-site scripting attacks. The issue is resolved in version 0.31.4.0 by applying proper input sanitization.
Potential Impact
An authenticated admin user with page-editing privileges can inject arbitrary JavaScript code into pages, which will execute in the browsers of all public visitors viewing those pages. This can lead to client-side code execution, potentially compromising user data or session integrity. The CVSS score is 5.5 (medium severity), reflecting limited scope due to the requirement for authenticated admin privileges and no direct impact on availability.
Mitigation Recommendations
Upgrade ci4ms to version 0.31.4.0 or later, where the vulnerability is fixed by applying the html_purify validation rule to page content fields. Since no official patch or temporary fix is separately provided, updating to the fixed version is the recommended remediation. There is no indication that the vulnerability is mitigated otherwise.
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: 69d737041cc7ad14da41952b
Added to database: 4/9/2026, 5:20:04 AM
Last enriched: 4/9/2026, 5:27:05 AM
Last updated: 4/10/2026, 8:01:09 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.