Skip to content

CI4MS: Stored Cross‑Site Scripting (Stored XSS) in Backend User Management Allows Session Hijacking and Full Administrative Account Compromise

Critical severity GitHub Reviewed Published Mar 31, 2026 in ci4-cms-erp/ci4ms • Updated Apr 6, 2026

Package

composer ci4-cms-erp/ci4ms (Composer)

Affected versions

<= 0.28.6.0

Patched versions

0.31.0.0

Description

Summary

A critical Stored Cross-Site Scripting (Stored XSS) vulnerability exists in the backend user management functionality. The application fails to properly sanitize user-controlled input before rendering it in the administrative interface, allowing attackers to inject persistent JavaScript code. This results in automatic execution whenever backend users access the affected page, enabling session hijacking, privilege escalation, and full administrative account compromise.


Details

The vulnerability resides in the backend user creation feature accessible via:

/backend/users

User-supplied input in the name and surname fields is stored without proper validation or sanitization. When this data is later rendered in the backend users listing page, it is injected directly into the HTML without output encoding.

Because of this, attackers can embed malicious JavaScript payloads that execute in the context of authenticated backend users.

This indicates missing contextual output escaping (e.g., HTML encoding) and insufficient input sanitization, leading to persistent script execution.

The vulnerability is particularly severe because:

  • The payload is stored in the database (persistent XSS).
  • The script executes automatically on page load.
  • The affected page appears to be an administrative/backend interface, increasing the risk of privilege escalation.

PoC

Steps to reproduce:

  1. Navigate to:
http://localhost:8080/backend/users
  1. Click Add New User.

  2. Create a new user.

  3. In the name and surname fields, insert the following payload:

adnan"><img src=1 onerror=alert(document.cookie)><<e>img src=1 onerror=alert(document.cookie)>
  1. Save the user.

  2. After saving, a popup displaying cookies will appear, demonstrating JavaScript execution.

  3. Revisit:

http://localhost:8080/backend/users
  1. The popup automatically triggers again, confirming that the malicious script is stored and executed persistently.

image


Impact

Severity: Critical

This vulnerability enables:

  • Persistent execution of attacker-controlled JavaScript in privileged backend contexts.
  • Theft of session cookies, potentially leading to full account takeover.
  • Unauthorized actions performed on behalf of administrators (CSRF-like behavior via XSS).
  • Privilege escalation if a high-privilege user views the page.
  • Injection of keyloggers, credential harvesting scripts, or malicious redirects.
  • Full compromise of backend administrative functionality depending on role permissions.

Since the payload executes automatically without user interaction once stored, exploitation requires minimal effort and can impact all backend users.

References

@bertugfahriozer bertugfahriozer published to ci4-cms-erp/ci4ms Mar 31, 2026
Published to the GitHub Advisory Database Apr 1, 2026
Reviewed Apr 1, 2026
Published by the National Vulnerability Database Apr 1, 2026
Last updated Apr 6, 2026

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(17th percentile)

Weaknesses

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Learn more on MITRE.

CVE ID

CVE-2026-34571

GHSA ID

GHSA-fc4p-p49v-r948

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.