{
    "document": {
        "category": "csaf_base",
        "csaf_version": "2.0",
        "distribution": {
            "tlp": {
                "label": "WHITE"
            }
        },
        "lang": "en",
        "notes": [
            {
                "category": "legal_disclaimer",
                "text": "The Netherlands Cyber Security Center (henceforth: NCSC-NL) maintains this portal to enhance access to its information and vulnerabilities. The use of this information is subject to the following terms and conditions:\n\nThe vulnerabilities disclosed in this portal are gathered by NCSC-NL from a variety of open sources, which the user can retrieve from other platforms. NCSC-NL makes every reasonable effort to ensure that the content of this portal is kept up to date, and that it is accurate and complete. Nevertheless, NCSC-NL cannot entirely rule out the possibility of errors, and therefore cannot give any warranty in respect of its completeness, accuracy or real-time keeping up-to-date. NCSC-NL does not control nor guarantee the accuracy, relevance, timeliness or completeness of information obtained from these external sources. The vulnerabilities disclosed in this portal are intended solely for the convenience of professional parties to take appropriate measures to manage the risks posed to the cybersecurity. No rights can be derived from the information provided therein.\n\nNCSC-NL and the Kingdom of the Netherlands assume no legal liability or responsibility for any damage resulting from either the use or inability of use of the vulnerabilities disclosed in this portal. This includes damage resulting from the inaccuracy of incompleteness of the information contained in it.\nThe information on this page is subject to Dutch law. All disputes related to or arising from the use of this portal regarding the disclosure of vulnerabilities will be submitted to the competent court in The Hague. This choice of means also applies to the court in summary proceedings."
            }
        ],
        "publisher": {
            "category": "coordinator",
            "contact_details": "cert@ncsc.nl",
            "name": "National Cyber Security Centre",
            "namespace": "https://www.ncsc.nl/"
        },
        "title": "CVE-2026-34558",
        "tracking": {
            "current_release_date": "2026-04-01T11:27:56.049559Z",
            "generator": {
                "date": "2026-02-17T15:00:00Z",
                "engine": {
                    "name": "V.E.L.M.A",
                    "version": "1.7"
                }
            },
            "id": "CVE-2026-34558",
            "initial_release_date": "2026-03-30T21:25:48.489272Z",
            "revision_history": [
                {
                    "date": "2026-03-30T21:25:48.489272Z",
                    "number": "1",
                    "summary": "CVE created.| Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (1).| CWES updated (1)."
                },
                {
                    "date": "2026-03-30T21:25:50.170367Z",
                    "number": "2",
                    "summary": "NCSC Score created."
                },
                {
                    "date": "2026-03-30T21:38:44.919968Z",
                    "number": "3",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (1).| CWES updated (1)."
                },
                {
                    "date": "2026-03-30T21:38:47.387144Z",
                    "number": "4",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-31T07:35:32.033400Z",
                    "number": "5",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-31T16:39:15.510711Z",
                    "number": "6",
                    "summary": "Unknown change."
                },
                {
                    "date": "2026-03-31T16:39:18.700875Z",
                    "number": "7",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-31T16:55:27.884704Z",
                    "number": "8",
                    "summary": "Source connected.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-04-01T01:03:16.965473Z",
                    "number": "9",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-04-01T01:03:29.229682Z",
                    "number": "10",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-04-01T11:27:53.539316Z",
                    "number": "11",
                    "summary": "NCSC Score updated."
                }
            ],
            "status": "interim",
            "version": "11"
        }
    },
    "product_tree": {
        "branches": [
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<0.31.0.0",
                                "product": {
                                    "name": "vers:unknown/<0.31.0.0",
                                    "product_id": "CSAFPID-5965630"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "ci4ms"
                    }
                ],
                "category": "vendor",
                "name": "ci4-cms-erp"
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2026-34558",
            "cwe": {
                "id": "CWE-79",
                "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"
            },
            "notes": [
                {
                    "category": "description",
                    "text": "CI4MS is a CodeIgniter 4-based CMS skeleton that delivers a production-ready, modular architecture with RBAC authorization and theme support. Prior to version 0.31.0.0, the application fails to properly sanitize user-controlled input within the Methods Management functionality when creating or managing application methods/pages. Multiple input fields accept attacker-controlled JavaScript payloads that are stored server-side without sanitization or output encoding. These stored values are later rendered directly into administrative interfaces and global navigation components without proper encoding, resulting in Stored DOM-Based Cross-Site Scripting (XSS). This issue has been patched in version 0.31.0.0.",
                    "title": "nvd - https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-34558"
                },
                {
                    "category": "description",
                    "text": "CI4MS is a CodeIgniter 4-based CMS skeleton that delivers a production-ready, modular architecture with RBAC authorization and theme support. Prior to version 0.31.0.0, the application fails to properly sanitize user-controlled input within the Methods Management functionality when creating or managing application methods/pages. Multiple input fields accept attacker-controlled JavaScript payloads that are stored server-side without sanitization or output encoding. These stored values are later rendered directly into administrative interfaces and global navigation components without proper encoding, resulting in Stored DOM-Based Cross-Site Scripting (XSS). This issue has been patched in version 0.31.0.0.",
                    "title": "cveprojectv5 - https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/34xxx/CVE-2026-34558.json"
                },
                {
                    "category": "description",
                    "text": "## Summary  \n### **Vulnerability: Stored DOM XSS via Methods Management Fields (Global Persistent Payload Execution)**  \n- Stored Cross-Site Scripting via Unsanitized Method Creation and Management Inputs  \n- Automatic Execution Across All Pages Where Method Is Rendered in Navigation  \n\n## Description  \nThe application fails to properly sanitize user-controlled input within the **Methods Management** functionality when creating or managing application methods/pages. Multiple input fields accept attacker-controlled JavaScript payloads that are stored server-side without sanitization or output encoding.\n\nThese stored values are later rendered directly into administrative interfaces and global navigation components without proper encoding, resulting in **Stored DOM-Based Cross-Site Scripting (XSS)**.\n\nCritically, because created methods are automatically rendered inside the system’s navigation/menu structure, the injected payload executes globally — meaning **every page visited where the malicious method appears in the menu triggers the XSS payload automatically**.\n\nThis significantly increases severity, as exploitation is not limited to a single view — it becomes a platform-wide persistent execution point.\n\n## Affected Functionality  \n- Methods creation functionality  \n- Methods management and listing functionality  \n- Administrative navigation rendering  \n- Permission-related UI rendering  \n- Global sidebar / menu rendering  \n- Storage and retrieval of method-related data  \n\n## Affected Fields  \nThe following fields accept unsanitized input and allow persistent JavaScript injection:\n- Page Name  \n- Description  \n- Controller  \n- Method Name  \n- Seflink  \n- Page Order  \n- Symbol (FontAwesome 5)  \n- Permissions  \n- Parent Page  \n- Module  \n\n## Attack Scenario  \n1. An attacker creates or edits a method.\n2. The attacker injects a malicious XSS payload into any vulnerable field (e.g., Page Name).\n3. The application stores the payload without sanitization or encoding.\n4. The method is automatically rendered inside the application’s navigation/menu.\n5. Every time any user visits any page where the menu is displayed, the malicious JavaScript executes automatically.\n\nBecause the navigation is globally rendered across backend pages, the XSS triggers on nearly every administrative page visit.\n\n## Impact  \n- Persistent Stored DOM XSS  \n- Automatic execution across multiple application pages  \n- Execution of arbitrary JavaScript in victims’ browsers  \n- Privilege escalation when viewed by administrators  \n- Full administrator account takeover  \n- Full account takeover across all roles  \n- Session hijacking  \n- CSRF token theft  \n- Complete compromise of the entire application  \n\nThis vulnerability is highly severe due to:\n- Persistent storage  \n- Global rendering surface  \n- Automatic execution without user interaction  \n- High likelihood of administrator exposure  \n\nEndpoints:\n- `/backend/methods/`  \n- `/backend/methods/create`  \n\n## Steps To Reproduce (POC)  \n1. Navigate to Methods Management → Create Method  \n2. Insert the following payload into Page Name (or any vulnerable field):  \n`<img src=x onerror=alert(document.domain)>`  \n3. Save the method  \n4. Navigate to any backend page  \n5. Observe the payload executing automatically wherever the malicious method appears in the menu  \n6. The XSS triggers across all pages where the navigation is rendered.\n\n## Remediation  \n- Never use `.html()`, `innerHTML`, or equivalent unsafe DOM sinks with untrusted data  \n- Implement strict output encoding (HTML entity encoding) before rendering user input  \n- Apply server-side input validation and sanitization  \n- Use contextual escaping depending on rendering context (HTML, attribute, JS, URL)  \n- Implement a strong Content Security Policy (CSP)  \n- Set cookies with HttpOnly, Secure, and SameSite flags  \n- Perform security review of all navigation rendering logic  \n\nFailure to properly encode and sanitize user-controlled method fields results in full application compromise through persistent global XSS.\n\n# Ready Video POC:\nhttps://mega.nz/file/CFsiQAJS#cBSF2lCMD7YNZEKYEjw3T8YturY92oBvrdRQ08gmw2A",
                    "title": "github - https://api.github.com/advisories/GHSA-v77r-xg3p-75g7"
                },
                {
                    "category": "other",
                    "text": "0.00046",
                    "title": "EPSS"
                },
                {
                    "category": "other",
                    "text": "4.2",
                    "title": "NCSC Score"
                },
                {
                    "category": "other",
                    "text": "There is product data available from source Cveprojectv5",
                    "title": "NCSC Score top increasing factors"
                },
                {
                    "category": "other",
                    "text": "There is cwe data available from source Nvd, Is related to CWE-79 (Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'))",
                    "title": "NCSC Score top decreasing factors"
                }
            ],
            "product_status": {
                "known_affected": [
                    "CSAFPID-5965630"
                ]
            },
            "references": [
                {
                    "category": "external",
                    "summary": "Source - nvd",
                    "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-34558"
                },
                {
                    "category": "external",
                    "summary": "Source - cveprojectv5",
                    "url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/34xxx/CVE-2026-34558.json"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - github",
                    "url": "https://api.github.com/advisories/GHSA-v77r-xg3p-75g7"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; nvd",
                    "url": "https://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-v77r-xg3p-75g7"
                },
                {
                    "category": "external",
                    "summary": "Reference - github",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34558"
                },
                {
                    "category": "external",
                    "summary": "Reference - github",
                    "url": "https://github.com/advisories/GHSA-v77r-xg3p-75g7"
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L",
                        "baseScore": 9.1,
                        "baseSeverity": "CRITICAL"
                    },
                    "products": [
                        "CSAFPID-5965630"
                    ]
                }
            ],
            "title": "CVE-2026-34558"
        }
    ]
}