Loading...
Skip to main content

CVE-2026-27599

CRITICAL

ci4-cms-erp/ci4ms: System Settings (Mail Settings) Full Platform Compromise & Full Account Takeover for All-Roles & Privilege-Escalation via Stored DOM XSS

Published March 30, 2026Updated May 5, 2026Source: osv

Summary

## Summary ### **Vulnerability: Stored DOM XSS via System Settings – Mail Settings (Same-Page Attribute Breakout & Persistent Payload Injection)** - Stored Cross-Site Scripting via Unsanitized Mail Settings Configuration Fields ### Description The application fails to properly sanitize user-controlled input within **System Settings – Mail Settings**. Several configuration fields, including **Mail Server, Mail Port, Email Address, Email Password, Mail Protocol, and TLS settings**, accept attacker-controlled input that is stored server-side and later rendered without proper output encoding. Unlike public-facing XSS that executes on landing pages, this vulnerability executes immediately on the same settings page. The injected payload breaks out of the HTML attribute context and is interpreted by the browser when rendered, resulting in same-page DOM-based XSS. This represents different functionality and a separate vulnerability from landing-page injection. ### Example Affected Fields - Mail Server: `test` - Mail Port: `465` - Email Address: `simple@gmail.com` - Email Password: (any input) - Mail Protocol: `SMTP` - Domain: `simple@domain.com` ### Affected Functionality - System Settings – Mail Settings configuration - Same-page rendering of user-controlled input fields - DOM attribute injection within form inputs - Storage and retrieval of mail configuration values ### Attack Scenario - An attacker injects a malicious JavaScript payload into one or more Mail Settings fields. - The payload breaks out of the HTML attribute context. - The application stores and re-renders the payload without sanitization or encoding. - The payload executes immediately on the same settings page. - The script executes in the browser context of the authenticated user managing Mail Settings. ### Impact - Persistent Stored XSS - Immediate Same-Page DOM XSS execution - Execution of arbitrary JavaScript in victims’ browsers - Administrative privilege escalation - Full administrator account takeover - Full account takeover across all roles - Full compromise of the entire platform Endpoints: - `/backend/settings/` (Mail Settings) ## Steps To Reproduce (POC) 1. Navigate to System Settings -> Mail Settings 2. Insert the following XSS payload into any Mail Settings field: `test"><img src=1 onerror=alert()>" class="form-control" placeholder="Name" required>` 3. Save the settings 4. Observe that the payload breaks out of the input attribute context 5. The XSS executes immediately on the same page ## Remediation - Never use .html() or any innerHTML-style sinks for user-controlled input in PHP or JavaScript. - Apply proper **HTML encoding and input sanitization** for all configuration fields. - Enforce CSP, HttpOnly, SameSite, and Secure flags for cookies to reduce the severity of XSS and potential CSRF escalation. - Audit all other system settings fields for similar attribute injection vulnerabilities. # Ready Video POC: https://mega.nz/file/KRNhUI6Q#NGC3Bow3RlnmdU1H2bGu1BGbpfIc-awi6IlvTp08V1s

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update ci4-cms-erp/ci4ms to 0.31.0.0 or later
composer require "ci4-cms-erp/ci4ms:^0.31.0.0"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

PackageEcosystemAffectedFixed In
ci4-cms-erp/ci4ms
packagist
0.21.0, 0.21.1, 0.21.2, 0.21.3 (+43 more)0.31.0.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-27599?
ci4-cms-erp/ci4ms: System Settings (Mail Settings) Full Platform Compromise & Full Account Takeover for All-Roles & Privilege-Escalation via Stored DOM XSS This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2026-27599?
CVE-2026-27599 affects ci4-cms-erp/ci4ms. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-27599 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-66m2-v9v9-95c3

Related CVEs

  • CVE-2026-34561
    CRITICAL

    CI4MS: System Settings (Social Media Management) Full Platform Compromise & Full Account Takeover for All-Roles & Privilege-Escalation via Stored DOM XSS

  • CVE-2026-25510
    CRITICAL

    CI4MS Vulnerable to Remote Code Execution (RCE) via Arbitrary File Creation and Save in File Editor

  • CVE-2026-34567
    CRITICAL

    CI4MS: Blogs Posts (Categories) Full Account Takeover for All-Roles & Privilege-Escalation via Stored DOM XSS

  • CVE-2026-34560
    CRITICAL

    CI4MS: Logs Full Account Takeover for All-Roles & Privilege-Escalation via Stored DOM XSS

  • CVE-2026-34557
    CRITICAL

    CI4MS: Permissions Management Full Account Takeover for All-Roles & Privilege-Escalation via Stored DOM XSS

  • CVE-2026-34558
    CRITICAL

    CI4MS: Methods Management Full Account Takeover for All-Roles & Privilege-Escalation via Stored DOM XSS

  • CVE-2026-34989
    CRITICAL

    CI4MS: Profile & User Management Full Account Takeover for All-Roles & Privilege-Escalation via Stored DOM XSS

  • CVE-2026-45270
    HIGH

    CI4MS: Stored XSS in Pages Module Content via Broken html_purify Validation Rule

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies