WordPress security changelog
MEDIUM CVE-2026-7048 Deferred

Photo Gallery by 10Web – Mobile-Friendly Image Gallery: SQL injection

Photo Gallery by 10Web – Mobile-Friendly Image Gallery is affected by SQL injection. Exploitation requires an authenticated contributor account. A successful request can alter database queries and expose or modify WordPress data. The published affected range is <= 1.8.40.

CVE / CNA score 6.5 CVSS 3.1 · security@wordfence.com
NVD score Pending NVD has not published its own CVSS assessment.
Component
Photo Gallery by 10Web – Mobile-Friendly Image Gallery
Plugin slug
photo-gallery
Affected
<= 1.8.40
Safe version
See mitigation notes
Published
May 28, 2026
Weakness
CWE-89 — Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

This CVE was published May 28, 2026 and is one of 61 known issues for this plugin.

Update, patch or deactivate.

No fixed release is identified. Update Photo Gallery by 10Web – Mobile-Friendly Image Gallery when a release after 1.8.40 becomes available; until then, disable and remove it when the site's risk warrants. The official upstream changelog lists version 1.8.43, which is newer than the published affected range. Its changelog does not clearly confirm this specific fix, so it is not counted as a known-safe release.

No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to time-based blind SQL Injection via the 'order_by' parameter in all versions up to, and including, 1.8.40 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. This is exploitable by embedding a malicious shortcode in a post or draft, allowing the injected SQL to execute when the shortcode is rendered.

CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Primary and upstream sources