# Gallery – Image and Video Gallery with Thumbnails <= 2.0.3 - Authenticated (Subscriber+) SQL Injection via Gallery AJAX Actions

- **ID:** WPSEC-2026-4725
- **Plugin:** Gallery – Image and Video Gallery with Thumbnails (`gallery-album`), https://wordpress.org/plugins/gallery-album/
- **Affected versions:** all versions before 2.1.0
- **Fixed in:** 2.1.0 (Update to 2.1.0 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-12-06)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gallery-album
- **Fix released:** 2026-12-05
- **Published:** 2026-12-06
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4725/

## Description

The gallery-album plugin for WordPress is vulnerable to SQL Injection via the gallery management AJAX actions (such as wpda_gall_form_gallery_rename, wpda_gall_form_album_rename and wpda_gall_form_edit_image) in all versions up to, and including, 2.0.3. This is due to the handlers lacking any capability check and building their UPDATE and DELETE queries by concatenating request values, and to gallery and album names stored this way being concatenated, without escaping or prepared statements, into later queries such as those of the public wpda_gall_load_image_info action and the gallery shortcode. This makes it possible for authenticated attackers, with Subscriber-level access and above, to append additional SQL to existing queries and potentially extract sensitive information from the database.

## References

- https://wpsec.com/vuln/WPSEC-2026-4725/
- https://plugins.svn.wordpress.org/gallery-album/tags/2.1.0/
- https://wordpress.org/plugins/gallery-album/

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

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.
