CVE-2026-45138 Details
Description
CI4MS is a CodeIgniter 4-based content management system skeleton. Prior to version 0.31.9.0, the custom `html_purify` validation rule used to sanitize blog post bodies relies on by-reference mutation (`?string &$str`), but CodeIgniter 4's validator passes a local copy of the value, so the sanitized text is silently discarded. The Blog controller writes `$lanData['content']` directly into `blog_langs.content`, and the public template echoes it without escaping — yielding stored XSS executable in any visitor's browser, including the superadmin when previewing or editing posts. Version 0.31.9.0 patches the issue.
A stored cross-site scripting vulnerability has been identified in CI4MS, a CodeIgniter 4-based content management system, in versions prior to 0.31.9.0. The issue arises from a custom 'html_purify' validation rule intended to sanitize blog post content. This rule relies on by-reference mutation, but CodeIgniter's validation system only passes a local copy of the data, causing the sanitized output to be discarded. As a result, raw HTML, including JavaScript, is stored in the database and executed in the browsers of all visitors, including superadmins, when posts are previewed or edited.
Users can upgrade to CI4MS version 0.31.9.0, which addresses this vulnerability by correcting the 'html_purify' validation rule to ensure proper sanitization before content is saved to the database.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 20, 2026CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-2m69-jmvh-6chr | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.9.0 | [email protected] | Release NotesVendor |
| https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-2m69-jmvh-6chr | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| CI4MS | <= 0.31.8.0 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 20, 2026 | New CVE Received | [email protected] |
Volerion