Skip to content
Laskyr

Plugins · gallery-photo-gallery · data as of 2026-11-04

Is Photo Gallery by Ays safe? Known vulnerabilities and latest version

No known unpatched vulnerabilities in the latest version (6.9.1)

As of 2026-11-04. 10 issues are on record for older versions; version 6.8.3 or newer fixes all of them that state a fix.

Latest version
6.9.1
Last updated
2026-10-26
Active installs
1,000+
Known issues on record
10
Unpatched in latest
0
Tested up to WP
7.1.4

Photo Gallery is a cool responsive image gallery plugin with beautiful views — by Ays Pro

What to do

  1. Update to the latest version (6.9.1). Anything older than 6.8.3 has at least one known issue listed below. Dashboard → Updates, or Plugins → “update now”.
  2. If you cannot update right away, deactivate it until you can.
  3. Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
  4. If you ran a vulnerable version and something looks off (spam pages, strange admins, redirects), run the free scan.

With WP-CLI: wp plugin get gallery-photo-gallery --field=version shows what you run; wp plugin update gallery-photo-gallery updates it.

Check your version

Known vulnerabilities

10 on record, newest first. “Affected” is the version range the source gives; “fixed in” is the version the source names, or (marked *) the first wordpress.org release after the last affected version.

medium 4.9 CVE-2026-76006 · published 2026-09-01

SQL injection in Photo Gallery by Ays (6.8.2 and older)

Affected
6.8.2 and older
Fixed in
6.8.3 *
Access needed (per CVSS)
Needs an admin-level account
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The Photo Gallery by Ays – Responsive Image Gallery plugin for WordPress is vulnerable to generic SQL Injection via the 's' parameter in all versions up to, and including, 6.8.2 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 administrator-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 vulnerability exists across two execution paths — $wpdb->get_var() in record_count() and $wpdb->get_results() in prepare_items()/get_image_categories() — enabling both blind and UNION-based exfiltration techniques.

NVD CVE-2026-76006Wordfence advisoryCode change (fix)Plugin source

medium 4.3 CVE-2025-13685 · published 2025-12-02

Cross-site request forgery (CSRF) in Photo Gallery by Ays (6.4.8 and older)

Affected
6.4.8 and older
Fixed in
6.4.9 *
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The Photo Gallery by Ays plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 6.4.8. This is due to missing nonce verification on the bulk action functionality in the 'process_bulk_action()' function. This makes it possible for unauthenticated attackers to perform bulk operations (delete, publish, or unpublish galleries) via a forged request granted they can trick an administrator into performing an action such as clicking on a link.

NVD CVE-2025-13685Wordfence advisoryCode change (fix)Plugin source

medium 6.5 CVE-2025-57947 · published 2025-09-22

Cross-site scripting (XSS) in Photo Gallery by Ays (6.3.8 and older)

Affected
6.3.8 and older
Fixed in
6.3.9
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber); someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Ays Pro Photo Gallery by Ays gallery-photo-gallery allows DOM-Based XSS.This issue affects Photo Gallery by Ays: from n/a through <= 6.3.8.

NVD CVE-2025-57947Patchstack advisory

medium 5.5 CVE-2024-37442 · published 2024-07-09

Remote code execution in Photo Gallery by Ays (older than 5.7.1)

Affected
older than 5.7.1
Fixed in
5.7.1
Access needed (per CVSS)
Needs an admin-level account
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') vulnerability in Photo Gallery Team Photo Gallery by Ays allows Code Injection.This issue affects Photo Gallery by Ays: from n/a before 5.7.1.

NVD CVE-2024-37442Patchstack advisory

high 7.1 CVE-2024-29919 · published 2024-03-27

Reflected cross-site scripting (XSS) in Photo Gallery by Ays (5.5.2 and older)

Affected
5.5.2 and older
Fixed in
5.5.3
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Photo Gallery Team Photo Gallery by Ays allows Reflected XSS.This issue affects Photo Gallery by Ays: from n/a through 5.5.2.

NVD CVE-2024-29919Patchstack advisory

high 8.8 CVE-2023-39917 · published 2023-10-03

Cross-site request forgery (CSRF) in Photo Gallery by Ays (5.2.6 and older)

Affected
5.2.6 and older
Fixed in
5.2.7
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Cross-Site Request Forgery (CSRF) vulnerability in Photo Gallery Team Photo Gallery by Ays – Responsive Image Gallery plugin <= 5.2.6 versions.

NVD CVE-2023-39917Patchstack advisory

medium 6.1 CVE-2023-32107 · published 2023-08-18

Reflected cross-site scripting (XSS) in Photo Gallery by Ays (5.1.3 and older)

Affected
5.1.3 and older
Fixed in
5.1.4
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Unauth. Reflected Cross-Site Scripting (XSS) vulnerability in Photo Gallery Team Photo Gallery by Ays – Responsive Image Gallery plugin <= 5.1.3 versions.

NVD CVE-2023-32107Patchstack advisory

medium 6.1 CVE-2023-2568 · published 2023-06-12

Reflected cross-site scripting (XSS) in Photo Gallery by Ays (older than 5.1.7)

Affected
older than 5.1.7
Fixed in
5.1.7
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The Photo Gallery by Ays WordPress plugin before 5.1.7 does not escape some parameters before outputting it back in attributes, leading to Reflected Cross-Site Scripting which could be used against high privilege users such as admin

NVD CVE-2023-2568WPScan advisory

high 8.8 CVE-2021-24462 · published 2021-08-02

SQL injection in Photo Gallery by Ays (older than 4.4.4)

Affected
older than 4.4.4
Fixed in
4.4.4
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
advisory text · score by NVD
Details from the advisory

The get_gallery_categories() and get_galleries() functions in the Photo Gallery by Ays – Responsive Image Gallery WordPress plugin before 4.4.4 did not use whitelist or validate the orderby parameter before using it in SQL statements passed to the get_results() DB calls, leading to SQL injection issues in the admin dashboard

NVD CVE-2021-24462WPScan advisory

critical 9.8 CVE-2016-10921 · published 2019-08-22

SQL injection in Photo Gallery by Ays (older than 1.0.1)

Affected
older than 1.0.1
Fixed in
1.0.1
Access needed (per CVSS)
No login needed
Range from
advisory text · score by NVD
Details from the advisory

The gallery-photo-gallery plugin before 1.0.1 for WordPress has SQL injection.

NVD CVE-2016-10921wordpress.org

Recent activity

Browse vulnerabilities

Where this data comes from

Badge for your site or docs (states facts with a date, not a verdict):
Photo Gallery by Ays vulnerability status badge
<a href="https://laskyr.com/plugins/gallery-photo-gallery"><img src="https://laskyr.com/plugins/gallery-photo-gallery/badge.svg" alt="Photo Gallery by Ays vulnerability status"></a>

← Check another plugin · Free hacked-site scan

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit