/

CVE-2026-39333

Severity:

HIGH RISK

(8.7)

XSS in ChurchCRM FindFundRaiser Endpoint

CVE-2026-39333

Analyzed

Vulnerability type

Category:

Cross-Site Scripting (XSS)

CWE:

CWE-79

Impact:

Cross-Site Scripting leading to account impersonation and data exposure

Severity:

HIGH RISK

(8.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

ChurchCRM contains a reflected cross-site scripting (XSS) issue where the FindFundRaiser.php endpoint echoes user-controlled DateStart and DateEnd parameters into HTML input attributes without proper encoding.

An authenticated attacker can craft a malicious URL that, when opened by another authenticated user, executes arbitrary JavaScript in their browser within the ChurchCRM context.

Affected context

The vulnerability occurs in the FindFundRaiser.php page of ChurchCRM, specifically where DateStart and DateEnd request parameters are rendered back into HTML input field attributes.

It is relevant in deployments where:

  • Users are authenticated into ChurchCRM
  • The application reflects query parameters into the page without applying HTML attribute-level output encoding
  • Users may click or be persuaded to click on URLs crafted by other authenticated users

Exploit preconditions

  • Attack surface: Web interface, FindFundRaiser.php endpoint
  • Required access: Attacker must be an authenticated ChurchCRM user able to generate or share URLs
  • Trigger point: Victim (another authenticated user) visits a maliciously crafted URL containing specially crafted DateStart/DateEnd parameters
  • Why exploitation is possible: User-supplied values are inserted directly into HTML input attributes without proper context-aware escaping, allowing injection of JavaScript that the browser interprets as active script

Why this happens

This issue stems from improper output encoding of untrusted input in a web page, aligning with CWE-79 (Improper Neutralization of Input During Web Page Generation).

The FindFundRaiser.php endpoint takes DateStart and DateEnd parameters from the request and writes them into HTML input attributes as-is or with insufficient sanitization.

Because the encoding does not account for the HTML attribute context, an attacker can break out of the attribute and inject script code, which the browser then executes within the application's origin.

Potential impact

  • Theft of session identifiers or other sensitive data accessible in the browser
  • Impersonation of the victim user within ChurchCRM
  • Unauthorized actions performed on behalf of the victim (e.g., changing records, viewing or modifying church member data)
  • Injection of rogue UI elements or phishing prompts inside the ChurchCRM interface
  • Potential pivoting to other attacks relying on the compromised user's privileges

General mitigation guidance

Effective mitigation focuses on enforcing strict, context-aware output encoding and minimizing the trust placed in client-supplied data.

Common defensive patterns include:

  • Applying HTML attribute-specific encoding when inserting user-controlled values into attribute values
  • Centralizing output encoding in helper functions or templating frameworks that apply the correct encoding by default
  • Limiting which characters are allowed in date-related inputs and validating them against a strict server-side format
  • Avoiding direct string concatenation when constructing HTML and using framework templating features that escape by default
  • Applying the principle of least privilege for user accounts, so that impact of any successful XSS is reduced

How teams detect issues like this

Organizations can identify similar vulnerabilities by:

  • Running static analysis tools configured with rules for detecting unencoded or improperly encoded output in HTML and attribute contexts
  • Reviewing server-side templates and PHP views for instances where request parameters are echoed directly into HTML, especially into attributes and script blocks
  • Establishing secure coding guidelines that mandate context-aware escaping and verifying adherence during peer code reviews
  • Integrating dynamic application security testing (DAST) into CI pipelines to probe parameters like DateStart/DateEnd for reflective behaviors

Sources

SourceLink
github.comgithub.com/ChurchCRM/CRM/security/advisories/GHSA-fqq6-qrcf-h7h5

Frequently asked

questions

Yes, if the ChurchCRM instance is accessible over the internet and the attacker has valid credentials, they can send malicious URLs to other authenticated users. The exploit executes in the victim's browser when they load the crafted link.

Yes. The description specifies an authenticated attacker, meaning the attacker must be logged into ChurchCRM to leverage this behavior effectively and target other authenticated users.

The safest pattern is to use context-aware output encoding for all user-controlled data rendered in HTML, particularly in attribute values, and to rely on templating or helper functions that escape content by default rather than manual string concatenation.

Enforce a secure development practice that includes strict input validation, context-aware output encoding, use of safe templating engines, and regular automated security testing, combined with code review checklists that explicitly call out XSS and encoding concerns.

Find out what's already
exploitable in your codebase.