WordPress security changelog
MEDIUM CVE-2026-6566 Deferred

Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery: A security weakness

Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery is affected by a security weakness. Exploitation requires an authenticated WordPress account. The resulting impact depends on how the affected component exposes the vulnerable operation. The published affected range is <= 4.2.0.

CVE / CNA score 4.3 CVSS 3.1 · security@wordfence.com
NVD score Pending NVD has not published its own CVSS assessment.
Component
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery
Plugin slug
photo-gallery-sliders-proofing-and-themes-nextgen-gallery
Affected
<= 4.2.0
Safe version
> 4.2.0
Published
May 20, 2026
Weakness
CWE-639 — Authorization Bypass Through User-Controlled Key

This CVE was published May 20, 2026 and is one of 1 known issue for this plugin.

Update, patch or deactivate.

Update Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery to a release after 4.2.0, or disable and remove it until a fixed version is available.

A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

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).

CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Primary and upstream sources