# CVE-2026-45270: CI4MS: Stored XSS in Pages Module Content via Broken html_purify Validation Rule

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-18T16:23:34.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-gqr2-7hcg-rchf
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

CI4MS is a CodeIgniter 4-based content management system skeleton. Prior to version 0.31.9.0, the `Pages` backend module registers the `html_purify` validation rule on language-keyed page content but persists the raw, un-purified POST value into the database. The public renderer for pages (`Home::index()` → `app/Views/templates/default/pages.php`) emits `$pageInfo->content` without `esc()`, yielding stored XSS that fires for every public visitor of the affected page — including administrators. Because pages may be promoted to the site home page, the payload can be served at `/` and reach every visitor of the site. Version 0.31.9.0 patches the issue.

(As written by CVE List.)

## Affected

- ci4-cms-erp ci4ms: < 0.31.9.0
- ci4-cms-erp/ci4ms (Packagist): before 0.31.9.0

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-gqr2-7hcg-rchf> (exploit, web)
- <https://github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.9.0> (web)
- <https://github.com/ci4-cms-erp/ci4ms> (package)

## Sources

- CVE List: [CVE-2026-45270](https://www.cve.org/CVERecord?id=CVE-2026-45270), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-gqr2-7hcg-rchf](https://github.com/advisories/GHSA-gqr2-7hcg-rchf), CC-BY-4.0, modified 2026-05-18
- NVD: [CVE-2026-45270](https://nvd.nist.gov/vuln/detail/CVE-2026-45270), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-45270 · Whole record: https://cve.day/CVE-2026-45270.json · Rebuilt by cve.day 2026-11-25T22:59:29.220Z
