# WP STAGING <= 4.21.0 - Unauthenticated Remote Code Execution via Exposed WordPress Installer During Staging Site Deletion

- **ID:** WPSEC-2026-3629
- **Plugin:** WP STAGING – Backups & Restore, Migration & Clone Plugin – Cloud Backups, Scheduled Backups (`wp-staging`), https://wordpress.org/plugins/wp-staging/
- **Affected versions:** all versions before 4.22.0
- **Fixed in:** 4.22.0 (Update to 4.22.0 or later.)
- **Severity:** High 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-284
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-staging
- **Fix released:** 2026-11-20
- **Published:** 2026-11-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3629/

## Description

The WP STAGING plugin for WordPress is vulnerable to a staging site takeover in all versions up to, and including, 4.21.0 due to the staging site's database tables being dropped before its files, including wp-admin/install.php and a working wp-config.php, are removed. This makes it possible for unauthenticated attackers, when an administrator deletes a staging site and the files remain reachable, to run the WordPress installer against the emptied database, create their own administrator account on the staging site and use it to execute code on the server.

## References

- https://wpsec.com/vuln/WPSEC-2026-3629/
- https://plugins.svn.wordpress.org/wp-staging/tags/4.22.0/
- https://wordpress.org/plugins/wp-staging/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3629/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
