CVE-2026-4072
Stored XSS in WordPress PayPal Donation Plugin Allows Script Injection
Publication date: 2026-03-21
Last updated on: 2026-03-21
Assigner: Wordfence
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| wordfence | wordpress_paypal_donation | to 1.01 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | 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. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
The WordPress PayPal Donation plugin is vulnerable to Stored Cross-Site Scripting (XSS) through its 'donate' shortcode in all versions up to and including 1.01. This happens because the plugin does not properly sanitize or escape user-supplied shortcode attributes such as 'amount', 'email', 'title', 'return_url', 'cancel_url', 'ccode', and 'image'. The function wordpress_paypal_donation_create() uses extract(shortcode_atts(...)) to handle these attributes and then inserts them directly into HTML output within single-quoted attribute values without escaping. As a result, authenticated users with Contributor-level access or higher can inject malicious scripts that execute whenever someone views the affected page.
How can this vulnerability impact me? :
This vulnerability allows attackers with Contributor-level access or higher to inject arbitrary malicious scripts into pages using the PayPal Donation plugin. These scripts can execute in the browsers of users who visit the infected pages, potentially leading to theft of user credentials, session hijacking, defacement, or other malicious actions. Because the vulnerability is a Stored Cross-Site Scripting issue, the injected scripts persist on the site and affect all visitors to the compromised pages.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
I don't know