CVE-2026-4072: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in tstachl WordPress PayPal Donation
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.
AI Analysis
Technical Summary
CVE-2026-4072 is a stored cross-site scripting vulnerability in the WordPress PayPal Donation plugin (versions up to 1.01). The vulnerability occurs because the wordpress_paypal_donation_create() function uses extract(shortcode_atts(...)) to process shortcode attributes and then directly inserts these values into HTML attribute values without proper escaping. This allows authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code via shortcode attributes like 'amount', 'email', 'title', 'return_url', 'cancel_url', 'ccode', and 'image'. When other users access the page containing the injected shortcode, the malicious script executes in their browsers.
Potential Impact
An attacker with Contributor-level access or above can inject persistent malicious scripts into pages using the vulnerable shortcode attributes. This can lead to the execution of arbitrary JavaScript in the context of users viewing the page, potentially allowing theft of cookies, session tokens, or other sensitive information. The vulnerability does not affect availability but impacts confidentiality and integrity. The CVSS vector indicates network attack vector, low attack complexity, privileges required, no user interaction, and scope change with low confidentiality and integrity impact and no availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level access to trusted users only. Avoid using the vulnerable shortcode attributes or disable the WordPress PayPal Donation plugin if possible. Monitor for updates from the vendor or plugin author regarding patches or official mitigations.
CVE-2026-4072: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in tstachl WordPress PayPal Donation
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-4072 is a stored cross-site scripting vulnerability in the WordPress PayPal Donation plugin (versions up to 1.01). The vulnerability occurs because the wordpress_paypal_donation_create() function uses extract(shortcode_atts(...)) to process shortcode attributes and then directly inserts these values into HTML attribute values without proper escaping. This allows authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code via shortcode attributes like 'amount', 'email', 'title', 'return_url', 'cancel_url', 'ccode', and 'image'. When other users access the page containing the injected shortcode, the malicious script executes in their browsers.
Potential Impact
An attacker with Contributor-level access or above can inject persistent malicious scripts into pages using the vulnerable shortcode attributes. This can lead to the execution of arbitrary JavaScript in the context of users viewing the page, potentially allowing theft of cookies, session tokens, or other sensitive information. The vulnerability does not affect availability but impacts confidentiality and integrity. The CVSS vector indicates network attack vector, low attack complexity, privileges required, no user interaction, and scope change with low confidentiality and integrity impact and no availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Contributor-level access to trusted users only. Avoid using the vulnerable shortcode attributes or disable the WordPress PayPal Donation plugin if possible. Monitor for updates from the vendor or plugin author regarding patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-03-12T19:46:38.507Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69be1811f4197a8e3b78441d
Added to database: 3/21/2026, 4:01:21 AM
Last enriched: 4/9/2026, 6:51:20 PM
Last updated: 5/4/2026, 8:17:28 PM
Views: 43
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.