{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4725",
 "modified": "2026-12-06T12:42:44Z",
 "published": "2026-12-06T12:42:44Z",
 "summary": "Gallery – Image and Video Gallery with Thumbnails <= 2.0.3 - Authenticated (Subscriber+) SQL Injection via Gallery AJAX Actions",
 "details": "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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "gallery-album"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "0"
      },
      {
       "fixed": "2.1.0"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "all versions before 2.1.0"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4725/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/gallery-album/tags/2.1.0/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/gallery-album/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4725/",
  "cwe_ids": [
   "CWE-89"
  ],
  "vulnerability_type": "SQLI",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
