Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-45138— CI4MS: Stored XSS in Blog Content via Broken `html_purify` Validation Rule

Quick assessment

Affected
ci4-cms-erp ci4ms
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

CI4MS是Ci4MS团队开源的一个博客页面管理工具。 CI4MS 0.31.9.0之前版本存在跨站脚本漏洞,该漏洞源于自定义html_purify验证规则依赖引用传递,但CodeIgniter 4的验证器传递了本地副本,导致清理后的文本被静默丢弃,并且Blog控制器将$lanData['content']直接写入blog_langs.content,公共模板未经转义输出,容易受到存储型跨站脚本攻击。

CVSS 5.4 · Medium EPSS 0.24% · P15

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 1

VendorProduct Version RangeStatus
ci4-cms-erp ci4ms < 0.31.9.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-45138

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
CI4MS: Stored XSS in Blog Content via Broken `html_purify` Validation Rule
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
CI4MS 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
CI4MS是Ci4MS团队开源的一个博客页面管理工具。 CI4MS 0.31.9.0之前版本存在跨站脚本漏洞,该漏洞源于自定义html_purify验证规则依赖引用传递,但CodeIgniter 4的验证器传递了本地副本,导致清理后的文本被静默丢弃,并且Blog控制器将$lanData['content']直接写入blog_langs.content,公共模板未经转义输出,容易受到存储型跨站脚本攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
ci4-cms-erp ci4ms < 0.31.9.0 -

II. Public POCs for CVE-2026-45138

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-45138

登录查看更多情报信息。

Vendor Advisories for CVE-2026-45138 (1)

Vendor Pages for CVE-2026-45138 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-45138

No comments yet


Leave a comment