{
 "id": "WPSEC-2026-2174",
 "url": "https://wpsec.com/vuln/WPSEC-2026-2174/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-2174/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-2174/index.md",
 "title": "Database Cleaner <= 1.4.7 - Authenticated (Administrator+) SQL Injection via Table Name",
 "description": "The Database Cleaner plugin for WordPress is vulnerable to SQL Injection via the 'tables' parameter of the delete_tables REST endpoint in all versions up to, and including, 1.4.7. This is due to the table name being interpolated unescaped inside backticks in a DROP TABLE query, and to a deletable-table check that only recognises core tables carrying the current site's prefix. This makes it possible for authenticated attackers with administrator-level access to break out of the identifier quoting with a crafted name and drop arbitrary database tables, including WordPress core tables. On multisite networks, site administrators can drop the network-wide tables (such as users and usermeta) and the tables of other sites in the network, causing data loss across the whole network.",
 "plugin": {
  "slug": "database-cleaner",
  "name": "Database Cleaner",
  "full_name": "Database Cleaner: Cleanup, Optimization & Repair",
  "wordpress_org": "https://wordpress.org/plugins/database-cleaner/",
  "advisories_url": "https://wpsec.com/vuln/plugin/database-cleaner/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/database-cleaner"
 },
 "type": "SQLI",
 "cwe": [
  "CWE-89"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.5,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "1.4.8",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 1.4.8"
  ]
 },
 "introduced_in": null,
 "fixed_in": "1.4.8",
 "remediation": "Update to 1.4.8 or later.",
 "fix_released": "2026-10-30T06:41:05+00:00",
 "published": "2026-10-31T07:44:03+00:00",
 "updated": "2026-10-30T09:33:01.767126+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-2174/",
  "https://plugins.svn.wordpress.org/database-cleaner/tags/1.4.8/",
  "https://wordpress.org/plugins/database-cleaner/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/database-cleaner",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "None seen",
  "as_of": "2026-10-31"
 }
}