CVE-2026-6566: Imagely NextGEN Gallery IDOR in image deletion REST flow

CVE-2026-6566 · Severity: medium · CVSS 4.3 · Published 2026-05-20

NextGEN Gallery is a popular WordPress plugin used to manage and display photo galleries. A security flaw allows logged-in users with basic gallery management permissions to delete images belonging to other users. This could lead to the unauthorized removal of website content and permanent loss of image files from the server's storage.

Technologies: Imagely NextGEN Gallery. Vendors: Imagely.

Quick answers

Is CVE-2026-6566 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-6566 being exploited in the wild.
How severe is CVE-2026-6566?
Medium severity, with a CVSS score of 4.3, published 20 May 2026.
Which products and versions are affected?
Imagely NextGEN Gallery up to and including 4.2.0.
Is there a fix for CVE-2026-6566?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-6566 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-6566?
Check whether you run Imagely NextGEN Gallery at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The NextGEN Gallery plugin for WordPress (up to version 4.2.0) contains an Insecure Direct Object Reference (IDOR) vulnerability in its REST API. The issue exists in the permission callback for the 'DELETE /imagely/v1/images/{id}' endpoint, which fails to verify gallery ownership or check for 'NextGEN Manage others gallery' permissions. An authenticated attacker with Subscriber-level privileges and the 'NextGEN Manage gallery' capability can exploit this to delete arbitrary image IDs. If the 'deleteImg' setting is enabled (the default configuration), the associated files are also deleted from the disk. A patch is available in the plugin's latest updates.

Affected products

  • Imagely NextGEN Gallery up to and including 4.2.0

Timeline

  • 2026-05-20: disclosed: Vulnerability published on NVD and Wordfence Intelligence.

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.