{
 "id": "WPSEC-2026-1042",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1042/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1042/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1042/index.md",
 "title": "Gmedia Photo Gallery <= 1.25.1 - Cross-Site Request Forgery to Arbitrary Gmedia Term Deletion via Module Preset Restore",
 "description": "The Gmedia Photo Gallery plugin for WordPress is vulnerable to Cross-Site Request Forgery via the 'module_preset_restore_original' action of the Gmedia Galleries admin page in all versions up to, and including, 1.25.1, due to missing nonce validation and no check on the term the 'preset_default' parameter points to. This makes it possible for unauthenticated attackers to delete any Gmedia term (module presets, galleries, albums, categories or tags), together with its linked WordPress post, via a forged request. The attacker has to trick a site administrator, or another user granted the Gmedia gallery management capability, into performing an action such as clicking on a link.",
 "plugin": {
  "slug": "grand-media",
  "name": "Gmedia Photo Gallery",
  "full_name": "Gmedia Photo Gallery",
  "wordpress_org": "https://wordpress.org/plugins/grand-media/",
  "advisories_url": "https://wpsec.com/vuln/plugin/grand-media/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/grand-media"
 },
 "type": "CSRF",
 "cwe": [
  "CWE-352"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "1.25.2",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 1.25.2"
  ]
 },
 "introduced_in": null,
 "fixed_in": "1.25.2",
 "remediation": "Update to 1.25.2 or later.",
 "fix_released": "2026-10-14T20:50:11+00:00",
 "published": "2026-10-15T21:43:23+00:00",
 "updated": "2026-10-15T08:15:41.253562+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1042/",
  "https://plugins.svn.wordpress.org/grand-media/tags/1.25.2/",
  "https://wordpress.org/plugins/grand-media/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/grand-media",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Low",
  "as_of": "2026-10-15"
 }
}