CVE-2026-6566: CWE-639 Authorization Bypass Through User-Controlled Key in smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery
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).
AI Analysis
Technical Summary
The NextGEN Gallery plugin for WordPress suffers from an authorization bypass vulnerability (CWE-639) in its image deletion REST endpoint DELETE /imagely/v1/images/{id}. The permission callback only verifies the 'NextGEN Manage gallery' permission without enforcing gallery ownership or requiring 'NextGEN Manage others gallery' permission. Consequently, authenticated users with limited privileges can delete images from galleries they do not own, including the physical image files if deleteImg is enabled. This flaw affects versions up to and including 4.2.0.
Potential Impact
The vulnerability allows authenticated attackers with Subscriber-level privileges and the 'NextGEN Manage gallery' capability to delete images from other users' galleries and remove associated image files from disk. This impacts data integrity by enabling unauthorized deletion but does not affect confidentiality or availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch is currently documented. Until a patch is available, restrict the 'NextGEN Manage gallery' capability to trusted users only and consider disabling the deleteImg option if feasible to reduce risk.
CVE-2026-6566: CWE-639 Authorization Bypass Through User-Controlled Key in smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery
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).
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The NextGEN Gallery plugin for WordPress suffers from an authorization bypass vulnerability (CWE-639) in its image deletion REST endpoint DELETE /imagely/v1/images/{id}. The permission callback only verifies the 'NextGEN Manage gallery' permission without enforcing gallery ownership or requiring 'NextGEN Manage others gallery' permission. Consequently, authenticated users with limited privileges can delete images from galleries they do not own, including the physical image files if deleteImg is enabled. This flaw affects versions up to and including 4.2.0.
Potential Impact
The vulnerability allows authenticated attackers with Subscriber-level privileges and the 'NextGEN Manage gallery' capability to delete images from other users' galleries and remove associated image files from disk. This impacts data integrity by enabling unauthorized deletion but does not affect confidentiality or availability. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch is currently documented. Until a patch is available, restrict the 'NextGEN Manage gallery' capability to trusted users only and consider disabling the deleteImg option if feasible to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-04-18T17:51:56.808Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0de26eba1db473628f2ed8
Added to database: 5/20/2026, 4:33:50 PM
Last enriched: 5/20/2026, 4:48:44 PM
Last updated: 5/20/2026, 6:42:11 PM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.