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

Medium 5.4 CWE-639Fixed in 4.6.1
ID
WPSEC-2026-3908
Plugin
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery (nextgen-gallery)
Affected
from 4.0.0 before 4.6.1
Remediation
Update to 4.6.1 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Weakness
CWE-639
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-25
Attack surface
Photo Gallery, Sliders, Proofing and Themes on WPSec AttackSurface
Fix released
Published

Description

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.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0