Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-4072: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in tstachl WordPress PayPal Donation

0
Medium
VulnerabilityCVE-2026-4072cvecve-2026-4072cwe-79
Published: Sat Mar 21 2026 (03/21/2026, 03:26:56 UTC)
Source: CVE Database V5
Vendor/Project: tstachl
Product: 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

AILast updated: 04/09/2026, 18:51:20 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses