{"id":"CVE-2026-45138","published":"2026-07-19T23:18:51Z","modified":"2026-07-20T13:18:54Z","title":"CI4MS: Stored XSS in Blog Content via Broken `html_purify` Validation Rule","vendor":"ci4-cms-erp","product":"ci4ms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00175,"percentile":0.0717,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-2m69-jmvh-6chr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.9.0","tags":["x_refsource_MISC"]}],"priority":{"score":5.2,"factors":[{"name":"EPSS percentile","points":1.43},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"ci4-cms-erp","affectedVersions":[{"vendor":"ci4-cms-erp","product":"ci4ms","versions":["< 0.31.9.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T13:18:37.167276Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"ci4-cms-erp/ci4ms","vulnerableRanges":["<0.31.9.0"],"patched":["0.31.9.0"],"from":["GHSA-2m69-jmvh-6chr"],"provenance":"source"}],"summary":{"text":"The CI4MS content management system (vendor ci4-cms-erp, product ci4ms) has a stored cross-site scripting flaw in its blog post body handling, where the intended html_purify validation rule fails to sanitize content and the unescaped text is rendered on public pages. An attacker with low-privilege authenticated access and the ability to get a victim to interact (such as a visitor viewing or a superadmin previewing or editing a post) can have script executed in the victim's browser.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:00Z"},"euvd":{"id":"EUVD-2026-45875","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-41587","published":"2026-05-07","fixed":"0.31.7.0","kev":false},{"cve":"CVE-2026-41890","published":"2026-05-07","fixed":"0.31.8.0","kev":false},{"cve":"CVE-2026-41891","published":"2026-05-07","fixed":"0.31.8.0","kev":false,"link":{"from":"CVE-2026-41891","to":"CVE-2026-45138","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:ci4-cms-erp/ci4ms","fromFixed":"0.31.8.0","toFixed":"0.31.9.0","daysApart":73}]}},{"cve":"CVE-2026-45138","published":"2026-07-19","fixed":"0.31.9.0","kev":false},{"cve":"CVE-2026-45139","published":"2026-07-20","fixed":"0.31.9.0","kev":false},{"cve":"CVE-2026-45270","published":"2026-07-20","fixed":"0.31.9.0","kev":false},{"cve":"CVE-2026-34989","published":"2026-04-06","fixed":"31.0.0.0","kev":false}],"package":"Packagist:ci4-cms-erp/ci4ms"}}