{"answers":{"affected":"2 open source packages ship an affected version, including ci4-cms-erp/ci4ms.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45270 exists.","fix":"Upgrade ci4-cms-erp/ci4ms to 0.31.9.0 or later.","what":"CVE-2026-45270 is a high-severity cross-site scripting vulnerability in ci4-cms-erp ci4ms, published on 20 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-45270 and fix it if it is affected.\n\nWhat it is: CVE-2026-45270 is a high-severity cross-site scripting vulnerability in ci4-cms-erp ci4ms, published on 20 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45270 exists.\n\nAffected packages and fixed versions:\n- ci4-cms-erp/ci4ms (Packagist): affected all versions; fixed in 0.31.9.0\n- ci4-cms-erp/ci4ms (Packagist): affected all versions; fixed in 0.31.9.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-45270/ (Markdown: https://insights.sbomify.com/CVE-2026-45270/index.md)","id":"CVE-2026-45270","markdown":"https://insights.sbomify.com/CVE-2026-45270/index.md","name":"CVE-2026-45270","record":{"aliases":["GHSA-gqr2-7hcg-rchf"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"CodeIgniter CMS skeleton","requires_auth":"low_privilege","summary":"Stored XSS in CI4MS Pages module allows attackers to inject scripts that execute for all visitors, including admins, due to missing output escaping.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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-\u003econtent` 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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"CI4MS: Stored XSS in Pages Module Content via Broken html_purify Validation Rule","id":"CVE-2026-45270","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"picotls has infinite recursion in the minicrypto ASN.1 decoder","id":"CVE-2026-45271"},"packages":[{"ecosystem":"Packagist","fixed":["0.31.9.0"],"introduced":["0"],"last_affected":[],"package":"ci4-cms-erp/ci4ms","purl":null,"source":"GHSA-gqr2-7hcg-rchf"},{"ecosystem":"Packagist","fixed":["0.31.9.0"],"introduced":["0"],"last_affected":[],"package":"ci4-cms-erp/ci4ms","purl":"pkg:composer/ci4-cms-erp/ci4ms","source":"GHSA-gqr2-7hcg-rchf"}],"prev":{"headline":"Nextcloud: Missing permission check for from submissions","id":"CVE-2026-45267"},"products":["ci4ms"],"published":"2026-07-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-20","vendors":["ci4-cms-erp"]},"summary":"Stored XSS in CI4MS Pages module allows attackers to inject scripts that execute for all visitors, including admins, due to missing output escaping.","url":"https://insights.sbomify.com/CVE-2026-45270/"}