{
 "id": "WPSEC-2026-2731",
 "url": "https://wpsec.com/vuln/WPSEC-2026-2731/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-2731/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-2731/index.md",
 "title": "WP Directory Kit <= 1.5.9 - Authenticated (Listing Admin+) Insecure Direct Object Reference to Arbitrary Attachment Deletion",
 "description": "The WP Directory Kit plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 1.5.9. When a listing is deleted, the deletion routine (Listing_m::delete) passes every ID stored in the listing's 'listing_images' field to wp_delete_attachment() without checking that the ID is an attachment or that the user may delete it. This makes it possible for authenticated attackers, with Listing Admin-level access and above, to delete arbitrary media attachments from the site. Exploitation requires the option that removes listing images on listing deletion to be enabled.",
 "plugin": {
  "slug": "wpdirectorykit",
  "name": "WP Directory Kit",
  "full_name": "WP Directory Kit",
  "wordpress_org": "https://wordpress.org/plugins/wpdirectorykit/",
  "advisories_url": "https://wpsec.com/vuln/plugin/wpdirectorykit/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/wpdirectorykit"
 },
 "type": "AUTHBYPASS",
 "cwe": [
  "CWE-639"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 3.3,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:L",
  "severity": "Low"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.5.1",
    "from_inclusive": true,
    "to": "1.6.1",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.5.1 before 1.6.1"
  ]
 },
 "introduced_in": "1.5.1",
 "fixed_in": "1.6.1",
 "remediation": "Update to 1.6.1 or later.",
 "fix_released": "2026-11-06T20:47:36+00:00",
 "published": "2026-11-07T21:41:07+00:00",
 "updated": "2026-11-07T11:11:35.855448+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-2731/",
  "https://plugins.svn.wordpress.org/wpdirectorykit/tags/1.6.1/",
  "https://wordpress.org/plugins/wpdirectorykit/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/wpdirectorykit",
 "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-08"
 }
}