Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4072

CVE-2026-4072: WordPress PayPal Donation XSS Vulnerability

CVE-2026-4072 is a stored cross-site scripting flaw in WordPress PayPal Donation plugin that allows authenticated attackers to inject malicious scripts. This post covers technical details, affected versions, and mitigations.

Published: March 27, 2026

CVE-2026-4072 Overview

The WordPress PayPal Donation plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in the donate shortcode affecting all versions up to and including 1.01. The vulnerability stems from insufficient input sanitization and output escaping on user-supplied shortcode attributes, allowing authenticated attackers with Contributor-level access or higher to inject arbitrary web scripts that execute when users access affected pages.

Critical Impact

Authenticated attackers can inject malicious JavaScript that persists on affected pages, potentially leading to session hijacking, credential theft, and unauthorized actions on behalf of legitimate users.

Affected Products

  • WordPress PayPal Donation plugin version 1.01 and earlier
  • WordPress sites using the vulnerable donate shortcode
  • All WordPress installations with Contributor or higher user roles that have the affected plugin installed

Discovery Timeline

  • 2026-03-21 - CVE CVE-2026-4072 published to NVD
  • 2026-03-23 - Last updated in NVD database

Technical Details for CVE-2026-4072

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability exists in the wordpress_paypal_donation_create() function which processes the donate shortcode. The function uses extract(shortcode_atts(...)) to process shortcode attributes and directly interpolates user-supplied values into HTML output within single-quoted attribute values without proper escaping. Multiple shortcode attributes are vulnerable including amount, email, title, return_url, cancel_url, ccode, and image.

The attack requires authenticated access at the Contributor level or above, which limits the attack surface but still presents a significant risk in multi-author WordPress environments. Once injected, the malicious scripts persist in the WordPress database and execute in the browsers of any users who view the compromised pages.

Root Cause

The vulnerability's root cause is the failure to properly sanitize and escape user-supplied input before rendering it in HTML output. The wordpress_paypal_donation_create() function directly interpolates shortcode attribute values into HTML without applying WordPress escaping functions such as esc_attr() or esc_html(). When user-controlled data is placed within single-quoted HTML attribute values without escaping, attackers can break out of the attribute context and inject arbitrary JavaScript code.

Attack Vector

The attack vector is network-based and requires low-privileged authenticated access. An attacker with Contributor-level permissions can create or edit a WordPress post containing the donate shortcode with malicious payloads in one or more of the vulnerable attributes. When the post is published or previewed by other users, the injected scripts execute in their browser context.

The vulnerability allows attackers to potentially steal session cookies, redirect users to malicious sites, modify page content, or perform actions on behalf of authenticated administrators, leading to further site compromise.

Detection Methods for CVE-2026-4072

Indicators of Compromise

  • Unusual or unexpected JavaScript code appearing within WordPress posts or pages containing the donate shortcode
  • Shortcode attributes containing suspicious characters such as single quotes, angle brackets, or javascript: URIs
  • Reports of unexpected browser behavior or redirects when viewing pages with PayPal donation forms
  • Unauthorized modifications to posts by Contributor-level users

Detection Strategies

  • Review all posts and pages containing the donate shortcode for unexpected or malicious content in shortcode attributes
  • Implement Content Security Policy (CSP) headers to detect and report inline script execution attempts
  • Monitor WordPress audit logs for suspicious post edits by Contributor-level users
  • Use Web Application Firewalls (WAF) with XSS detection rules to identify injection attempts

Monitoring Recommendations

  • Enable detailed logging for post creation and modification activities in WordPress
  • Configure alerts for posts containing the donate shortcode with unusual attribute patterns
  • Monitor browser console errors and CSP violation reports for signs of blocked XSS attempts
  • Regularly audit user permissions to ensure only trusted users have Contributor-level access or higher

How to Mitigate CVE-2026-4072

Immediate Actions Required

  • Update the WordPress PayPal Donation plugin to a patched version when available
  • Audit all existing posts and pages using the donate shortcode for malicious content
  • Review and restrict Contributor-level access to trusted users only
  • Consider temporarily disabling the WordPress PayPal Donation plugin until a patch is available

Patch Information

The vulnerability affects WordPress PayPal Donation plugin versions up to and including 1.01. Users should monitor the WordPress PayPal Donation Plugin Code repository for updates and apply patches as soon as they become available. Additional details can be found in the Wordfence Vulnerability Report.

Workarounds

  • Temporarily remove or disable the WordPress PayPal Donation plugin until a patched version is released
  • Restrict shortcode usage by demoting untrusted users below Contributor level
  • Implement a Web Application Firewall (WAF) with rules to block common XSS patterns in shortcode attributes
  • Apply Content Security Policy headers to mitigate the impact of successful XSS attacks
bash
# Apache .htaccess CSP header configuration to mitigate XSS impact
Header set Content-Security-Policy "script-src 'self'; object-src 'none';"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress PayPal Donation Plugin Code

  • WordPress PayPal Donation Plugin Code

  • WordPress PayPal Donation Plugin Code

  • WordPress PayPal Donation Plugin Code

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-4512: reCaptcha by WebDesignBy XSS Vulnerability

  • CVE-2026-3361: WP Store Locator Plugin XSS Vulnerability

  • CVE-2026-1923: Social Rocket WordPress Plugin XSS Flaw

  • CVE-2026-6048: Flipbox Addon for Elementor XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English