Skip to main content

CVE-2025-3781: Raisely Donation Form XSS Vulnerability

CVE-2025-3781 is a stored XSS vulnerability in the Raisely Donation Form WordPress plugin affecting versions up to 1.1. Attackers with contributor access can inject malicious scripts. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-3781 Overview

CVE-2025-3781 is a Stored Cross-Site Scripting (XSS) vulnerability in the Raisely Donation Form plugin for WordPress. The flaw affects all versions up to and including 1.1. It stems from insufficient input sanitization and output escaping on user-supplied attributes passed to the raisely_donation_form shortcode. Authenticated attackers with Contributor-level access or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any user who views the affected page. The weakness is classified under [CWE-79] (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Contributor-level accounts can inject persistent JavaScript that executes against site visitors and administrators, enabling session theft, account takeover, and unauthorized administrative actions.

Affected Products

  • Raisely Donation Form plugin for WordPress — all versions through 1.1
  • WordPress sites running the plugin with Contributor-level or higher user accounts
  • Pages rendering content via the raisely_donation_form shortcode

Discovery Timeline

  • 2025-05-21 - CVE-2025-3781 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in the NVD database

Technical Details for CVE-2025-3781

Vulnerability Analysis

The vulnerability resides in the shortcode handler defined in inc/base/providers/shortcodes.php of the Raisely Donation Form plugin. The handler accepts user-supplied attributes passed to the raisely_donation_form shortcode but fails to properly sanitize those inputs or escape them during output. As a result, attacker-controlled strings are rendered directly into HTML served to visitors.

A WordPress user with Contributor role or higher can insert a crafted shortcode into a post or page. When the post is viewed, the plugin outputs the attacker-controlled attributes without escaping, causing the browser to parse injected content as executable script. Because the payload is stored in the database, the attack persists across page loads and user sessions.

Root Cause

The root cause is missing input validation and output encoding on shortcode attributes. The plugin does not apply WordPress sanitization helpers such as sanitize_text_field() on input, nor does it apply escaping functions such as esc_attr() or esc_html() on output. This gap allows HTML and JavaScript characters to be rendered verbatim within the response body.

Attack Vector

Exploitation requires an authenticated session with at least Contributor privileges. The attacker inserts a raisely_donation_form shortcode containing a malicious attribute value into a post. When any visitor — including an authenticated administrator — loads the page, the stored JavaScript executes in their browser context. Impact includes session hijacking via cookie theft, forced administrative actions through CSRF chaining, redirection to attacker infrastructure, and credential harvesting through injected forms. See the WordPress Plugin Shortcodes File and the Wordfence Vulnerability Report for technical references.

Detection Methods for CVE-2025-3781

Indicators of Compromise

  • Posts or pages containing raisely_donation_form shortcodes with suspicious attribute values that include <script>, javascript:, or HTML event handlers such as onerror= and onload=.
  • Unexpected outbound requests from visitor browsers to unknown third-party domains originating from pages rendering the shortcode.
  • New or modified posts authored by Contributor-level accounts that embed the plugin shortcode.

Detection Strategies

  • Query the wp_posts table for post_content matching raisely_donation_form and inspect attribute values for script syntax or encoded payloads.
  • Review web server access logs for anomalous referer or request patterns originating from pages hosting the shortcode.
  • Enable WordPress audit logging to track post creation and modification events by Contributor and Author roles.

Monitoring Recommendations

  • Deploy a Content Security Policy (CSP) with script-src restrictions and monitor CSP violation reports for inline script execution attempts.
  • Alert on logins by Contributor-level accounts followed by rapid post creation or edits.
  • Monitor administrative session cookies for use from unexpected IP addresses, which may indicate session hijacking from a successful XSS payload.

How to Mitigate CVE-2025-3781

Immediate Actions Required

  • Deactivate the Raisely Donation Form plugin on affected WordPress sites until a patched version is confirmed installed.
  • Audit all existing posts and pages for instances of the raisely_donation_form shortcode and remove any containing untrusted attribute values.
  • Review the Contributor, Author, and Editor user lists and remove or suspend accounts that are not actively required.
  • Rotate administrator credentials and invalidate active sessions if indicators suggest the vulnerability was exploited.

Patch Information

A fix was committed to the plugin repository under WordPress Changeset #3302489. Site operators should update the Raisely Donation Form plugin to the latest version available from the WordPress plugin directory. Verify the installed version through the WordPress admin dashboard after updating.

Workarounds

  • Restrict Contributor-level and higher accounts to trusted users only, since exploitation requires authenticated access.
  • Use a Web Application Firewall (WAF) rule to block requests containing <script> tags or JavaScript event handlers within raisely_donation_form shortcode attributes.
  • Remove the plugin entirely if the donation form functionality is not currently required on the site.
bash
# Configuration example
# Disable the plugin via WP-CLI until patched version is installed
wp plugin deactivate raisely-donation-form

# Search post content for the vulnerable shortcode usage
wp db query "SELECT ID, post_title, post_author FROM wp_posts WHERE post_content LIKE '%raisely_donation_form%' AND post_status='publish';"

# Update the plugin once a fixed release is available
wp plugin update raisely-donation-form

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.