{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-3908",
 "modified": "2026-11-25T17:46:08Z",
 "published": "2026-11-25T17:46:08Z",
 "summary": "Photo Gallery, Sliders, Proofing and Themes <= 4.6.0 - Authenticated (Author+) Insecure Direct Object Reference to Image Modification and Deletion via REST API 'id' Parameter",
 "details": "The NextGEN Gallery plugin for WordPress is vulnerable to Insecure Direct Object Reference via the imagely/v1 REST API single-image update, delete and image operation routes in all versions from 4.0.0 up to, and including, 4.6.0. This is due to insufficient object-level authorization. Up to version 4.2.0 these routes did not check image ownership at all. From 4.2.1 onward, the permission callbacks authorize the image ID from the URL path, but the handlers act on the 'id' request parameter, which a query-string or body 'id' value overrides. This makes it possible for authenticated attackers who have been granted the plugin's 'NextGEN Manage gallery' capability (for example Authors, when an administrator delegates it through the Roles screen) but not 'NextGEN Manage others gallery' to edit, delete, rotate, crop, resize, watermark, recover, re-import metadata for or regenerate thumbnails of images in galleries that belong to other users.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "nextgen-gallery"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "4.0.0"
      },
      {
       "fixed": "4.6.1"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 4.0.0 before 4.6.1"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-3908/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/nextgen-gallery/tags/4.6.1/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/nextgen-gallery/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-3908/",
  "cwe_ids": [
   "CWE-639"
  ],
  "vulnerability_type": "IDOR",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
