# CVE-2026-39392: CI4MS has Stored XSS in Pages Content Due to Missing html_purify Sanitization

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/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 18% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-08T14:30:59.132Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-fjpj-6qcq-6pw2
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

CI4MS is a CodeIgniter 4-based CMS skeleton that delivers a production-ready, modular architecture with RBAC authorization and theme support. Prior to 0.31.4.0, the Pages module does not apply the html_purify validation rule to content fields during create and update operations, while the Blog module does. Page content is stored unsanitized in the database and rendered as raw HTML on the public frontend via echo $pageInfo->content. An authenticated admin with page-editing privileges can inject arbitrary JavaScript that executes in the browser of every public visitor viewing the page. This vulnerability is fixed in 0.31.4.0.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-fjpj-6qcq-6pw2> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39392> (advisory)
- <https://github.com/ci4-cms-erp/ci4ms> (package)
- <https://github.com/ci4-cms-erp/ci4ms/releases/tag/0.31.4.0> (web)

## Sources

- CVE List: [CVE-2026-39392](https://www.cve.org/CVERecord?id=CVE-2026-39392), CVE Terms of Use, modified 2026-04-08
- GitHub Advisory Database: [GHSA-fjpj-6qcq-6pw2](https://github.com/advisories/GHSA-fjpj-6qcq-6pw2), CC-BY-4.0, modified 2026-04-08
- NVD: [CVE-2026-39392](https://nvd.nist.gov/vuln/detail/CVE-2026-39392), Public domain, modified 2026-07-24

---

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