CVE-2026-45138: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in ci4-cms-erp ci4ms
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.
AI Analysis
Technical Summary
CVE-2026-45138 describes a stored cross-site scripting vulnerability in ci4ms (ci4-cms-erp) versions before 0.31.9.0. The vulnerability occurs because the html_purify validation rule intended to sanitize blog post bodies uses by-reference mutation, but CodeIgniter 4's validator passes a local copy, causing sanitized content to be discarded silently. Consequently, the Blog controller writes unsanitized content directly into the database, and the public template echoes this content without escaping. This results in stored XSS that can execute in any visitor's browser, including privileged users such as superadmins when previewing or editing posts. The issue is patched in version 0.31.9.0.
Potential Impact
An attacker can inject malicious scripts into blog post content that will be stored in the database and executed in the browsers of any visitors viewing the content, including superadmins during post preview or editing. This can lead to information disclosure and limited integrity compromise. The CVSS 3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, required privileges, user interaction, and partial confidentiality and integrity impact without availability impact.
Mitigation Recommendations
Upgrade ci4ms to version 0.31.9.0 or later, where the issue is patched. No other mitigation is indicated or required as the fix addresses the root cause by correcting the sanitization process.
CVE-2026-45138: 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 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.
CVSS v3.1
Score 5.4medium
Affected software
pkg:github/ci4-cms-erp/ci4msRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-45138 describes a stored cross-site scripting vulnerability in ci4ms (ci4-cms-erp) versions before 0.31.9.0. The vulnerability occurs because the html_purify validation rule intended to sanitize blog post bodies uses by-reference mutation, but CodeIgniter 4's validator passes a local copy, causing sanitized content to be discarded silently. Consequently, the Blog controller writes unsanitized content directly into the database, and the public template echoes this content without escaping. This results in stored XSS that can execute in any visitor's browser, including privileged users such as superadmins when previewing or editing posts. The issue is patched in version 0.31.9.0.
Potential Impact
An attacker can inject malicious scripts into blog post content that will be stored in the database and executed in the browsers of any visitors viewing the content, including superadmins during post preview or editing. This can lead to information disclosure and limited integrity compromise. The CVSS 3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, required privileges, user interaction, and partial confidentiality and integrity impact without availability impact.
Mitigation Recommendations
Upgrade ci4ms to version 0.31.9.0 or later, where the issue is patched. No other mitigation is indicated or required as the fix addresses the root cause by correcting the sanitization process.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-08T20:44:38.962Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5d60df2a4a8d5989626f55
Added to database: 07/19/2026, 23:42:23 UTC
Last enriched: 07/19/2026, 23:56:46 UTC
Last updated: 07/20/2026, 18:03:07 UTC
Views: 23
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.
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.