Loading advisory.
Loading advisory.
ci4-cms-erp/ci4ms: System Settings (Mail Settings) Full Platform Compromise & Full Account Takeover for All-Roles & Privilege-Escalation via Stored DOM XSS
Stored Cross-Site Scripting via Unsanitized Mail Settings Configuration Fields
Published 2026-03-30 16:19 UTC · Modified 2026-05-05 15:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| ci4-cms-erp/ci4ms | Packagist | < 0.31.0.0 versions 0.21.0, 0.21.1, 0.21.2, 0.21.3, 0.21.3.1, 0.21.3.2, 0.21.3.3, 0.21.3.4, 0.21.3.5, 0.21.3.6, 0.21.3.7, 0.23.0.0, 0.23.0.1, 0.23.0.2, 0.23.1.0, 0.24.0.0, 0.24.0.16, 0.24.0.18, 0.24.0.19, 0.24.0.20 and 27 more | 0.31.0.0 | composer require 'ci4-cms-erp/ci4ms:>=0.31.0.0' |
Stored Cross-Site Scripting via Unsanitized Mail Settings Configuration Fields
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.
Mail Server: test
Mail Port: 465
Email Address: simple@gmail.com
Email Password: (any input)
Mail Protocol: SMTP
Domain: simple@domain.com
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
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.
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)
Navigate to System Settings -> Mail Settings
Insert the following XSS payload into any Mail Settings field:
test"><img src=1 onerror=alert()>" class="form-control" placeholder="Name" required>
Save the settings
Observe that the payload breaks out of the input attribute context
The XSS executes immediately on the same page
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.
https://mega.nz/file/KRNhUI6Q#NGC3Bow3RlnmdU1H2bGu1BGbpfIc-awi6IlvTp08V1s
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.004 on 2026-11-24 to 0.005 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.004 | first score | v2026.06.15 |
| 2026-11-26 | 0.005 | 0.004 | v2026.06.15 |