Skip to content
Laskyr

Plugins · foogallery · data as of 2026-11-04

Is FooGallery Photo Gallery safe? Known vulnerabilities and latest version

No known unpatched vulnerabilities in the latest version (3.3.17)

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

Latest version
3.3.17
Last updated
2026-10-19
Active installs
100,000+
Known issues on record
16
Unpatched in latest
0
Tested up to WP
7.1.4 · PHP 7.2+

Create responsive photo, image and masonry galleries in WordPress with FooGallery, plus carousel, lightbox, albums, SEO and video gallery support. — by FooPlugins

What to do

  1. Update to the latest version (3.3.17). Anything older than 3.3.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 foogallery --field=version shows what you run; wp plugin update foogallery updates it.

Check your version

Known vulnerabilities

16 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 6.4 CVE-2026-85414 · published 2026-09-05

Stored cross-site scripting (XSS) in FooGallery Photo Gallery (3.3.2 and older)

Affected
3.3.2 and older
Fixed in
3.3.3 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The Gallery : FooGallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'custom_settings' Shortcode Attribute in all versions up to, and including, 3.3.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

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

medium 6.4 CVE-2026-9134 · published 2026-06-13

Stored cross-site scripting (XSS) in FooGallery Photo Gallery (3.1.31 and older)

Affected
3.1.31 and older
Fixed in
3.1.36 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The FooGallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'custom_attribute_key' shortcode parameter in versions up to, and including, 3.1.31 This is due to an incomplete JavaScript event handler blacklist in the foogallery_sanitize_javascript() function, which blocks only a subset of HTML event attributes (onmouseover, onmouseout, onpointerenter, onclick, onload, onchange, onerror) while permitting others such as 'onmouseenter', combined with the failure to escape the attribute key when building the gallery container HTML in foogallery_build_container_attributes_safe(). This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

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

medium 5.9 CVE-2026-25362 · published 2026-02-19

Stored cross-site scripting (XSS) in FooGallery Photo Gallery (3.1.11 and older)

Affected
3.1.11 and older
Fixed in
3.1.13
Access needed (per CVSS)
Needs an admin-level account; 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 FooPlugins FooGallery foogallery allows Stored XSS.This issue affects FooGallery: from n/a through <= 3.1.11.

NVD CVE-2026-25362Patchstack advisory

medium 4.3 CVE-2026-25363 · published 2026-02-19

Missing authorization check in FooGallery Photo Gallery (3.1.11 and older)

Affected
3.1.11 and older
Fixed in
3.1.13
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Missing Authorization vulnerability in FooPlugins FooGallery foogallery allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects FooGallery: from n/a through <= 3.1.11.

NVD CVE-2026-25363Patchstack advisory

medium 4.3 CVE-2025-15524 · published 2026-02-11

Missing authorization check in FooGallery Photo Gallery (3.1.9 and older)

Affected
3.1.9 and older
Fixed in
3.1.36 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The Gallery by FooGallery plugin for WordPress is vulnerable to unauthorized access of data due to a missing capability check on the ajax_get_gallery_info() function in all versions up to, and including, 3.1.9. This makes it possible for authenticated attackers, with Subscriber-level access and above, to retrieve metadata (name, image count, thumbnail URL) of private, draft, and password-protected galleries by enumerating gallery IDs.

NVD CVE-2025-15524Wordfence advisoryPlugin source

medium 5.4 CVE-2025-6068 · published 2025-07-11

Stored cross-site scripting (XSS) in FooGallery Photo Gallery (2.4.31 and older)

Affected
2.4.31 and older
Fixed in
2.4.32 *
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 NVD
Details from the advisory

The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `data-caption-title` & `data-caption-description` HTML attributes in all versions up to, and including, 2.4.31 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

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

medium 5.4 CVE-2024-12119 · published 2025-03-08

Stored cross-site scripting (XSS) in FooGallery Photo Gallery (2.4.29 and older)

Affected
2.4.29 and older
Fixed in
2.4.32 *
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 NVD
Details from the advisory

The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the default_gallery_title_size parameter in all versions up to, and including, 2.4.29 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with granted gallery and album creator roles, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

NVD CVE-2024-12119Wordfence advisorygithub.comPlugin source

medium 4.3 CVE-2024-12114 · published 2025-03-08

Missing authorization check in FooGallery Photo Gallery (2.4.29 and older)

Affected
2.4.29 and older
Fixed in
2.4.32 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.4.29 via the foogallery_attachment_modal_save AJAX action due to missing validation on a user controlled key (img_id). This makes it possible for authenticated attackers, with granted access and above, to update arbitrary post and page content. This requires the Gallery Creator Role setting to be a value lower than 'Editor' for there to be any real impact.

NVD CVE-2024-12114Wordfence advisoryCode change (fix)github.com

medium 5.4 CVE-2024-2122 · published 2024-06-14

Stored cross-site scripting (XSS) in FooGallery Photo Gallery (2.4.15 and older)

Affected
2.4.15 and older
Fixed in
2.4.32 *
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 NVD
Details from the advisory

The Best WordPress Gallery Plugin – FooGallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via album gallery custom URLs in all versions up to, and including, 2.4.15 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

NVD CVE-2024-2122Wordfence advisoryCode change (fix)

medium 5.4 CVE-2024-2081 · published 2024-04-09

Stored cross-site scripting (XSS) in FooGallery Photo Gallery (2.4.14 and older)

Affected
2.4.14 and older
Fixed in
2.4.32 *
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 NVD
Details from the advisory

The Best WordPress Gallery Plugin – FooGallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the foogallery_attachment_modal_save action in all versions up to, and including, 2.4.14 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

NVD CVE-2024-2081Wordfence advisoryCode change (fix)github.com

medium 5.4 CVE-2024-2471 · published 2024-04-06

Stored cross-site scripting (XSS) in FooGallery Photo Gallery (2.4.14 and older)

Affected
2.4.14 and older
Fixed in
2.4.32 *
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 NVD
Details from the advisory

The FooGallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via image attachment fields (such as 'Title', 'Alt Text', 'Custom URL', 'Custom Class', and 'Override Type') in all versions up to, and including, 2.4.14 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

NVD CVE-2024-2471Wordfence advisoryCode change (fix)

medium 4.8 CVE-2024-0604 · published 2024-02-29

Stored cross-site scripting (XSS) in FooGallery Photo Gallery (2.4.7 and older)

Affected
2.4.7 and older
Fixed in
2.4.32 *
Access needed (per CVSS)
Needs an admin-level account; 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 Best WordPress Gallery Plugin – FooGallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 2.4.7 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

NVD CVE-2024-0604Wordfence advisoryCode change (fix)advisory.abay.sh

medium 5.4 CVE-2023-6747 · published 2024-01-03

Stored cross-site scripting (XSS) in FooGallery Photo Gallery (older than 2.4.6)

Affected
older than 2.4.6
Fixed in
2.4.6
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
NVD analysis · score by NVD
Details from the advisory

The Best WordPress Gallery Plugin – FooGallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the custom attributes in all versions up to, and including, 2.3.3 due to insufficient input sanitization and output escaping. This makes it possible for contributors and above to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

NVD CVE-2023-6747Wordfence advisoryfooplugins.comPlugin source

high 8.8 CVE-2023-44233 · published 2023-10-06

Cross-site request forgery (CSRF) in FooGallery Photo Gallery (2.2.44 and older)

Affected
2.2.44 and older
Fixed in
2.3.2
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 FooPlugins Best WordPress Gallery Plugin – FooGallery plugin <= 2.2.44 versions.

NVD CVE-2023-44233Patchstack advisory

medium 6.1 CVE-2023-44244 · published 2023-10-02

Reflected cross-site scripting (XSS) in FooGallery Photo Gallery (2.2.44 and older)

Affected
2.2.44 and older
Fixed in
2.3.2
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 FooPlugins FooGallery plugin <= 2.2.44 versions.

NVD CVE-2023-44244Patchstack advisory

medium 6.1 CVE-2023-29439 · published 2023-05-16

Reflected cross-site scripting (XSS) in FooGallery Photo Gallery (2.2.35 and older)

Affected
2.2.35 and older
Fixed in
2.2.41
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 FooPlugins FooGallery plugin <= 2.2.35 versions.

NVD CVE-2023-29439Patchstack advisorylourcode.kr

Recent activity

Browse vulnerabilities

Where this data comes from

Badge for your site or docs (states facts with a date, not a verdict):
FooGallery Photo Gallery vulnerability status badge
<a href="https://laskyr.com/plugins/foogallery"><img src="https://laskyr.com/plugins/foogallery/badge.svg" alt="FooGallery Photo Gallery 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