WP STAGING <= 4.19.0 - Authenticated (Administrator+) Arbitrary Directory Deletion via 'deleteDir' Parameter
Strategic Overview
- Status
- Patched in 4.20.0
- Affected Plugin
- WP STAGING – Backups & Restore, Migration & Clone Plugin – Cloud Backups, Scheduled Backups
- Affected Version
<= 4.19.0- CVSS
- 2.7Low
- Weakness type
- CWE-73 · External Control of File Name or Path
- CVE
CVE-2026-115871
At a glance
CVE-2026-115871 is a low-severity External Control of File Name or Path vulnerability in the WP STAGING WordPress plugin, affecting versions <= 4.19.0. It carries a CVSS score of 2.7 (reachable over the network; low attack complexity). Exploitation requires an authenticated account at Administrator level or above. The issue is fixed in version 4.20.0; sites on affected versions should update now. Disclosed November 2026, reported by Wordfence PRISM.
Vulnerability Overview
The WP STAGING – Backups & Restore, Migration & Clone Plugin – Cloud Backups, Scheduled Backups plugin for WordPress is vulnerable to Arbitrary Directory Deletion in all versions up to, and including, 4.19.0. This is due to insufficient path validation in the `cleanStagingDirectory` function, where the `deleteDir` parameter is only stripped of whitespace and double slashes by `sanitizePath()` without removing `..` traversal sequences or enforcing containment within the staging directory, leaving the sole pre-deletion guard as a simple string equality check against the WordPress home path. This makes it possible for authenticated attackers, with administrator-level access and above, to recursively delete arbitrary directories on the server — including `wp-content`, `wp-admin`, or directories outside the WordPress installation on shared hosting — resulting in denial of service or permanent data loss. An attacker must sequence a clone start, cancellation, and restart to drive the `delete_job` cache into the `directory` step before re-cancelling with a manipulated `deleteDir` value supplied via the `wp_ajax_wpstg_cancel_clone` endpoint.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user.
CWE-73: External Control of File Name or Path
The product allows user input to control or influence paths or file names that are used in filesystem operations.
Remediation
Update to version 4.20.0, or a newer patched version
How does WordSec protect against this?
An attacker needs Administrator access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: WP STAGING 4.20.0 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Other vulnerabilities in WP STAGING – Backups & Restore, Migration & Clone Plugin – Cloud Backups, Scheduled Backups
- 9.1CVE-2024-3412: WP STAGING WordPress… Arbitrary File Upload
CVE-2024-3412 - 5.5CVE-2022-2737: WP STAGING – Backup Duplicator & Migration Stored XSS
CVE-2022-2737 - 5.3CVE-2024-3682: WP STAGING and WP STAGING Pro <= 5.4.3 - Info Exposure
CVE-2024-3682 - 5.3CVE-2023-7204: WP STAGING WordPress Backup Plugin Info Exposure
CVE-2023-7204 - 5.3CVE-2023-6113: WP STAGING WordPress… and Pro <= 5.1.2 - Info Exposure
CVE-2023-6113 - 4.7CVE-2024-4469: Migration Backup Restore <= 3.4.3 SSRF
CVE-2024-4469 - 4.4CVE-2024-2309: WP Staging (Free , Pro <= 5.3.3) - Authenticated
CVE-2024-2309
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C