CVE-2026-9829 SQL injection in Photo Gallery by 10Web – Mobile-Friendly Image Gallery
Authenticated contributors can exploit SQL injection in the Photo Gallery plugin to extract sensitive database information via shortcode parameters.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-9829?
CVE-2026-9829 is a medium-severity SQL injection vulnerability in Photo Gallery by 10Web – Mobile-Friendly Image Gallery, published on 6 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to time-based SQL Injection via 'compact_album_order_by' Shortcode Parameter in all versions up to, and including, 1.8.41 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. The malicious payload is stored via the 'shortcode_bwg' AJAX handler — accessible to Contributor-level users and exploitable without a valid nonce by omitting the 'page' parameter — and is subsequently triggered by the unauthenticated 'bwg_frontend_data' AJAX handler, meaning successful exploitation requires only that an attacker has Contributor-level access to save the shortcode.
Weakness: CWE-89
Which versions are affected by CVE-2026-9829?
How do I fix CVE-2026-9829?
No fix has been published for CVE-2026-9829 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-9829 being exploited?
There is no known exploitation of CVE-2026-9829 in the wild and no public exploit code.
Sources
Also known as GHSA-xh2v-3wq6-997q.