CVE-2026-6566: Photo Gallery, Sliders, Proofing and Themes <= 4.2.0 - Insecure Direct Object Reference to Authenticated (Subscriber+) Image Deletion via REST API
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to and including 4.2.0. This is due to insufficient object-level authorization in the image deletion REST flow where the permission callback for DELETE /imagely/v1/images/{id} only checks 'NextGEN Manage gallery' permissions and does not enforce gallery ownership or 'NextGEN Manage others gallery' permissions. This makes it possible for authenticated attackers, with Subscriber-level privileges and 'NextGEN Manage gallery' capability, to delete gallery images belonging to other users as well as their associated image files from disk when deleteImg is enabled (default).
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-6566?
CVE-2026-6566 is rated as a high severity vulnerability due to the risk of unauthorized image deletion.
How do I fix CVE-2026-6566?
To mitigate CVE-2026-6566, update the Imagely NextGEN Gallery plugin to version 4.2.1 or later.
What is the impact of CVE-2026-6566 on my WordPress site?
CVE-2026-6566 allows authenticated users to delete images that they shouldn't have access to, potentially leading to data loss.
Which versions of Imagely NextGEN Gallery are affected by CVE-2026-6566?
CVE-2026-6566 affects Imagely NextGEN Gallery versions up to and including 4.2.0.
Who can exploit CVE-2026-6566?
Authenticated users with Subscriber or higher privileges can exploit CVE-2026-6566 to delete images via the REST API.