---
id: CVE-2026-96661
title: >-
  The Gmedia Photo Gallery plugin for WordPress is vulnerable to time-based SQL
  Injection via the 'gmedia__in' parameter in all versions up to, and including,
  1.25.1 due to insufficient escaping on the user supplied parameter and lack of
  s…
summary: >-
  The Gmedia Photo Gallery plugin for WordPress is vulnerable to time-based SQL
  Injection via the 'gmedia__in' parameter in all versions up to, and including,
  1.25.1 due to insufficient escaping on the user supplied parameter and lack of
  s…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-89
published: '2026-10-14'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T04:19:01.350'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-96661'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/grand-media/tags/1.25.1/app/access.php#L131
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/grand-media/tags/1.25.1/app/access.php#L36
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/grand-media/tags/1.25.1/inc/db.connect.php#L1682
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/grand-media/tags/1.25.1/inc/db.connect.php#L2206
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/0592050d-4e72-4b40-a88b-b92e53c49e9e?source=cve
    label: security@wordfence.com
tags:
  - nvd
ingestedAt: '2026-10-14T05:14:27.659Z'
---

## Overview

The Gmedia Photo Gallery plugin for WordPress is vulnerable to time-based SQL Injection via the 'gmedia__in' parameter in all versions up to, and including, 1.25.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The unauthenticated mobile app endpoint dispatches the library action without validating the Mobile App feature flag, a nonce, or any WordPress authentication, meaning no account or session of any kind is required to exploit this vulnerability.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
