Photo Gallery by 10Web – Mobile-Friendly Image Gallery: Author-level stored SQL injection in gallery shortcodes
The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to time-based SQL Injection via 'album_id' Shortcode Attribute in all versions up to, and including, 1.8.44 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 author-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. An Author-level user can store a SQL injection payload inside a published post's shortcode attribute, causing the payload to execute when any visitor renders the post; notably, the unsanitized value appears on both sides of a UNION query, potentially doubling the observable time-based delay. The post-rendering path makes this a stored SQL injection; the export does not identify the exact query function or a standalone HTTP endpoint. Affected versions reported by the CNA: <= 1.8.44. No fixed release is confirmed for this CVE in this review.
- Component
- Photo Gallery by 10Web – Mobile-Friendly Image Gallery
- Plugin slug
photo-gallery- Affected
- <= 1.8.44
- Safe version
- See mitigation notes
- Published
- Sep 18, 2026
This CVE was published Sep 18, 2026 and is one of 61 known issues for this plugin.
Update, patch or deactivate.
The official changelog was checked against the currently listed 1.8.46 release, but no clear fix for this specific issue was confirmed. A newer release may resolve it; do not treat the version number or a generic security entry as proof. Official changelog: https://wordpress.org/plugins/photo-gallery/#developers Validate album_id as the expected identifier and bind it in every branch of the UNION query. Restrict shortcode authoring and remove hostile stored shortcode attributes.
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 SQL Injection via 'album_id' Shortcode Attribute in all versions up to, and including, 1.8.44 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 author-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. An Author-level user can store a SQL injection payload inside a published post's shortcode attribute, causing the payload to execute when any visitor renders the post; notably, the unsanitized value appears on both sides of a UNION query, potentially doubling the observable time-based delay.
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
- NVD record for CVE-2026-85652
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- WordPress upstream reference plugins.trac.wordpress.org
- Wordfence advisory wordfence.com