Description
ChurchCRM is an open-source church management system. In versions prior to 7.2.0, the User Editor (UserEditor.php) renders stored usernames directly into an HTML input value attribute without applying htmlspecialchars(). An administrator can save a username containing HTML attribute-breaking characters and event handlers, which execute in the browser of any administrator who subsequently views that user's editor page, resulting in stored XSS. This issue has been fixed in version 7.2.0.
Published: 2026-04-18
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting (XSS)
Action: Patch
AI Analysis

Impact

ChurchCRM’s User Editor (UserEditor.php) concatenates stored usernames directly into an HTML input value attribute. Because the application forgets to escape special characters, an administrator can save a username that contains attribute‑breaking characters and JavaScript event handlers. When any other administrator loads that user’s editor page, the malicious script runs in their browser, allowing the attacker to execute arbitrary code in the context of the admin user, steal credentials or deface content. The flaw is a classic stored cross‑site scripting vulnerability (CWE‑79).

Affected Systems

All installations of the ChurchCRM open‑source church management system that use versions older than 7.2.0 are affected. The vulnerability resides in the UserEditor.php component of the core web application. Updating to the fixed version 7.2.0 removes the flaw.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate severity, and no EPSS score is available, suggesting that exploitation is not frequently observed. The issue is not listed in CISA’s KEV catalog. Attackers must first gain administrative access or compromise an administrator account to inject a malicious username, making the attack vector privileged or authenticated. If achieved, the script executes in any administrator who subsequently views the malformed user entry, potentially giving the attacker the same privileges as that administrator.

Generated by OpenCVE AI on April 18, 2026 at 08:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update ChurchCRM to version 7.2.0 or later, which applies htmlspecialchars() to the username field.
  • If an immediate upgrade is not possible, edit the UserEditor.php file to escape the username value before rendering it, or temporarily remove any existing usernames that contain special characters.
  • Limit administrative privileges to trusted users and monitor for suspicious account activity.

Generated by OpenCVE AI on April 18, 2026 at 08:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 18 Apr 2026 00:15:00 +0000

Type Values Removed Values Added
Description ChurchCRM is an open-source church management system. In versions prior to 7.2.0, the User Editor (UserEditor.php) renders stored usernames directly into an HTML input value attribute without applying htmlspecialchars(). An administrator can save a username containing HTML attribute-breaking characters and event handlers, which execute in the browser of any administrator who subsequently views that user's editor page, resulting in stored XSS. This issue has been fixed in version 7.2.0.
Title ChurchCRM: Stored XSS in UserEditor.php via Login Name Field
Weaknesses CWE-116
CWE-79
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-18T00:02:59.606Z

Reserved: 2026-04-14T14:07:59.641Z

Link: CVE-2026-40593

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-04-18T00:16:39.957

Modified: 2026-04-18T00:16:39.957

Link: CVE-2026-40593

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T08:45:41Z

Weaknesses