CVE-2026-4305
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-4305 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Royal WordPress Backup & Restore Plugin for WordPress. It affects all versions up to and including 1.0.16, stemming from insufficient input validation on the wpr_pending_template parameter. The vulnerability was published on April 10, 2026, and a patch was made available in version 1.0.17. It carries a CVSS v3.1 base score of 6.1 (Medium severity) (GitHub Advisory, Wordfence).

Technical details

The root cause is improper neutralization of user-controllable input before it is rendered in a web page (CWE-79). The vulnerable wpr_pending_template parameter is not properly sanitized or escaped, allowing an attacker to craft a malicious URL containing arbitrary JavaScript. The attack is network-based and requires no authentication or privileges; however, it does require social engineering — specifically, tricking a logged-in WordPress administrator into clicking a crafted link, at which point the injected script executes in the administrator's browser context. Relevant source code references are available in the plugin's Trac repository at royal-backup-reset.php#L803 and backup-reminder.js#L751 (GitHub Advisory, Wordfence).

Impact

Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the context of an administrator's browser session. This can result in unauthorized administrative actions (e.g., creating rogue admin accounts, installing malicious plugins), theft of session cookies or credentials, and further compromise of the WordPress installation. Confidentiality and integrity are both assessed as low impact per CVSS, with no direct availability impact, but the changed scope means the attack can affect resources beyond the vulnerable component itself (GitHub Advisory, Wordfence).

Exploitability

There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.033% (6th percentile), indicating a low near-term probability of exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (GitHub Advisory, Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the Royal WordPress Backup & Restore Plugin at version 1.0.16 or earlier, using tools like WPScan or by inspecting publicly accessible plugin metadata.
  2. Craft malicious URL: Construct a URL targeting the vulnerable WordPress admin page that includes a malicious payload in the wpr_pending_template parameter, e.g., https://target.com/wp-admin/admin.php?page=royal-backup&wpr_pending_template=<script>malicious_code_here</script>.
  3. Social engineering: Deliver the crafted URL to a WordPress administrator via phishing email, forum post, or other communication channel, enticing them to click the link while authenticated.
  4. Script execution: When the administrator clicks the link, the injected script executes in their browser under the WordPress admin session, enabling actions such as session cookie theft, creation of a backdoor admin account, or installation of a malicious plugin (GitHub Advisory, Wordfence).

Indicators of compromise

  • Network: HTTP GET or POST requests to WordPress admin pages (e.g., /wp-admin/admin.php) containing script tags, encoded JavaScript, or suspicious values in the wpr_pending_template parameter.
  • Logs: WordPress or web server access logs showing requests with URL-encoded XSS payloads (e.g., %3Cscript%3E, javascript:) in the wpr_pending_template query parameter.
  • File System: Unexpected new WordPress admin user accounts or newly installed/activated plugins not authorized by legitimate administrators.
  • Process/Behavior: Unusual outbound connections from the web server following administrator login activity, which may indicate session hijacking or data exfiltration triggered by a successful XSS payload.

Mitigation and workarounds

The vulnerability has been patched in version 1.0.17 of the Royal WordPress Backup & Restore Plugin; administrators should update immediately via the WordPress plugin dashboard or by downloading the latest version from the WordPress plugin repository. As a compensating control, implement a Content Security Policy (CSP) header to restrict script execution sources and reduce XSS impact. Administrators should also be educated about phishing and social engineering risks, particularly regarding clicking on unsolicited or unexpected links. Monitor WordPress admin access logs for anomalous requests containing script-like content in URL parameters (GitHub Advisory, Wordfence).

Community reactions

The vulnerability was discovered and reported by Wordfence, which published the initial advisory. Coverage has been limited to automated vulnerability tracking platforms and aggregators such as VulDB, CVEFeed, and ENISA's EUVD. No notable independent researcher commentary or significant social media discussion has been identified beyond standard CVE broadcast posts.

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-3174HIGH7.5
  • event-tickets
NoYesSep 08, 2026
CVE-2026-18021MEDIUM6.5
  • beaver-builder-lite-version
NoYesSep 08, 2026
CVE-2026-17509MEDIUM6.5
  • sitepress-multilingual-cms
NoYesSep 08, 2026
CVE-2026-76931MEDIUM6.4
  • zephyr-project-manager
NoYesSep 08, 2026
CVE-2026-2520MEDIUM5.4
  • bookly-responsive-appointment-booking-tool
NoYesSep 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management