{
 "id": "WPSEC-2026-3629",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3629/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3629/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3629/index.md",
 "title": "WP STAGING <= 4.21.0 - Unauthenticated Remote Code Execution via Exposed WordPress Installer During Staging Site Deletion",
 "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.",
 "plugin": {
  "slug": "wp-staging",
  "name": "WP STAGING",
  "full_name": "WP STAGING – Backups & Restore, Migration & Clone Plugin – Cloud Backups, Scheduled Backups",
  "wordpress_org": "https://wordpress.org/plugins/wp-staging/",
  "advisories_url": "https://wpsec.com/vuln/plugin/wp-staging/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/wp-staging"
 },
 "type": "RCE",
 "cwe": [
  "CWE-284"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 8.1,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
  "severity": "High"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "4.22.0",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 4.22.0"
  ]
 },
 "introduced_in": null,
 "fixed_in": "4.22.0",
 "remediation": "Update to 4.22.0 or later.",
 "fix_released": "2026-11-20T07:15:29+00:00",
 "published": "2026-11-21T09:41:26+00:00",
 "updated": "2026-11-21T09:00:15.054754+00:00",
 "also_published_as": null,
 "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/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/wp-staging",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-11-21"
 }
}