# Robo Gallery <= 5.1.6 - Missing Authorization to Authenticated (Contributor+) Arbitrary Post Reparenting and Reordering via Gallery Hierarchy Save

- **ID:** WPSEC-2026-0513
- **Plugin:** Robo Gallery – Photo & Image Slider (`robo-gallery`), https://wordpress.org/plugins/robo-gallery/
- **Affected versions:** from 1.9.0 before 5.2.6
- **Fixed in:** 5.2.6 (Update to 5.2.6 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-862
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-10-07)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/robo-gallery
- **Fix released:** 2026-10-06
- **Published:** 2026-10-07
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0513/

## Description

The Robo Gallery plugin for WordPress is vulnerable to unauthorized modification of data in all versions up to, and including, 5.1.6 due to a missing per-post capability check and post type validation in the AJAX handler that saves the gallery hierarchy. The handler accepted a client-supplied tree and called wp_update_post on every ID with only a generic edit_posts check. This makes it possible for authenticated attackers, with contributor-level access and above, to change the parent and menu order of arbitrary posts on the site, including posts they are not permitted to edit.

## References

- https://wpsec.com/vuln/WPSEC-2026-0513/
- https://plugins.svn.wordpress.org/robo-gallery/tags/5.2.6/
- https://wordpress.org/plugins/robo-gallery/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-0513/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
