Description
The WordPress PayPal Donation plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'donate' shortcode in all versions up to, and including, 1.01. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes such as 'amount', 'email', 'title', 'return_url', 'cancel_url', 'ccode', and 'image'. The wordpress_paypal_donation_create() function uses extract(shortcode_atts(...)) to process shortcode attributes and then directly interpolates these values into HTML output within single-quoted attribute values without any escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Published: 2026-03-21
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored cross‑site scripting via the PayPal Donation shortcode allows malicious scripts to be inserted into pages
Action: Immediate patch
AI Analysis

Impact

The WordPress PayPal Donation plugin is vulnerable to stored XSS because shortcode attributes such as amount, email, title, return_url, cancel_url, ccode, and image are not sanitized or escaped. When an authenticated user with Contributor-level access or higher inserts malicious code into these attributes, the plugin interpolates the values directly into HTML output without filtering. This permits an attacker to inject arbitrary JavaScript, which will execute whenever a user views the affected page.

Affected Systems

All WordPress sites that have installed WordPress PayPal Donation up to and including version 1.01 are affected. Site administrators and content editors with Contributor or higher privileges can exploit the vulnerability by embedding malicious shortcode attributes into posts, pages, or widgets that include the donate shortcode.

Risk and Exploitability

The CVSS score of 6.4 indicates moderate severity. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is a web application requiring authenticated access with Contributor privileges. Once code is injected, it runs for any visitor to the page, potentially allowing attackers to deface content, steal session data, or perform phishing attacks. Based on the description, it is inferred that the impact could include unintended script execution and data exfiltration for unsuspecting users.

Generated by OpenCVE AI on March 21, 2026 at 07:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update WordPress PayPal Donation to the latest version that patches the input sanitization and output escaping issues.
  • If an update is not immediately available, disable or delete the plugin to stop further exploitation.
  • Remove any instances of the donate shortcode that contain suspicious or untrusted attribute values from posts, pages, and widgets.
  • Audit the site for remnants of injected scripts and clean them manually.
  • Restrict Contributor-level permissions to trusted users to reduce the risk of accidental or malicious injections.

Generated by OpenCVE AI on March 21, 2026 at 07:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 23 Mar 2026 18:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 23 Mar 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Tstachl
Tstachl wordpress Paypal Donation
Wordpress
Wordpress wordpress
Vendors & Products Tstachl
Tstachl wordpress Paypal Donation
Wordpress
Wordpress wordpress

Sat, 21 Mar 2026 05:30:00 +0000

Type Values Removed Values Added
Description The WordPress PayPal Donation plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'donate' shortcode in all versions up to, and including, 1.01. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes such as 'amount', 'email', 'title', 'return_url', 'cancel_url', 'ccode', and 'image'. The wordpress_paypal_donation_create() function uses extract(shortcode_atts(...)) to process shortcode attributes and then directly interpolates these values into HTML output within single-quoted attribute values without any escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Title WordPress PayPal Donation <= 1.01 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'amount' Shortcode Attribute
Weaknesses CWE-79
References
Metrics cvssV3_1

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


Subscriptions

Tstachl Wordpress Paypal Donation
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:10:56.760Z

Reserved: 2026-03-12T19:46:38.507Z

Link: CVE-2026-4072

cve-icon Vulnrichment

Updated: 2026-03-23T17:08:13.571Z

cve-icon NVD

Status : Deferred

Published: 2026-03-21T04:17:40.413

Modified: 2026-04-24T16:27:44.277

Link: CVE-2026-4072

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-25T14:41:52Z

Weaknesses