Photo Gallery, Sliders, Proofing and Themes <= 4.6.0 - Authenticated (Author+) Insecure Direct Object Reference to Album Modification and Deletion via REST API 'id' Parameter

Medium 5.4 CWE-639Fixed in 4.6.1
ID
WPSEC-2026-3907
Plugin
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery (nextgen-gallery)
Affected
from 4.2.1 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 album update and delete routes in all versions from 4.2.1 up to, and including, 4.6.0. This is due to the permission callback authorizing only the album ID from the URL path, and treating an ID of 0 as the create route, while the update and delete handlers act on the 'id' request parameter, which a query-string or body value overrides. This makes it possible for authenticated attackers who have been granted the plugin's 'NextGEN Edit album' capability (for example Authors, when an administrator delegates it through the Roles screen) to edit or delete albums that belong to other users. They do not need to own an album themselves.

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