Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel <= 3.1.31 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'custom_attribute_key' Shortcode Parameter

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-9134
CVSS 6.4 (Medium)
Publicly Published June 12, 2026
Last Updated June 13, 2026
Researcher Dmitrii Ignatyev - CleanTalk Inc

Description

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel

Software Type Plugin
Software Slug foogallery (view on wordpress.org)
Patched? Yes
Remediation Update to version 3.1.32, or a newer patched version
Affected Version
  • <= 3.1.31
Patched Version
  • 3.1.32

Recent vulnerabilities in Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel

# Title CVE ID CVSS Researchers Date
1 Freemius <= 2.10.1 - Reflected DOM-Based Cross-Site Scripting via url Parameter CVE-2024-13362 6.1 Asaf Mozes April 30, 2026
2 FooGallery <= 3.1.11 - Authenticated (Author+) Stored Cross-Site Scripting CVE-2026-25362 6.4 Steven Julian February 15, 2026
3 FooGallery <= 3.1.11 - Missing Authorization CVE-2026-25363 4.3 Steven Julian February 15, 2026
4 Gallery by FooGallery <= 3.1.9 - Missing Authorization to Authenticated (Subscriber+) Arbitrary Gallery Metadata Exposure CVE-2025-15524 4.3 s00me00ne February 10, 2026
5 FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel <= 2.4.31 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting CVE-2025-6068 6.4 Webbernaut July 10, 2025
6 FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel <= 2.4.29 - Insecure Direct Object Reference to Authenticated (Custom+) Arbitrary Post/Page Updates CVE-2024-12114 4.3 Stiofan March 7, 2025
7 FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel <= 2.4.29 - Authenticated (Custom+) Stored Cross-Site Scripting via Album Title Size CVE-2024-12119 6.4 Stiofan March 7, 2025
8 FooGallery <= 2.4.29 - Reflected Cross-Site Scripting CVE-2025-22624 6.1 Andres Roldan February 27, 2025
9 FooGallery <= 2.4.15 - Authenticated (Contributor+) Stored Cross-Site Scripting via Gallery Custom URL CVE-2024-2122 6.4 Robert Kruczek (ProXy) June 13, 2024
10 FooGallery (Free and Premium) < 2.4.15 - Authenticated (Author+) Stored Cross-Site Scripting CVE-2024-2762 6.4 Dmitrii Ignatyev May 23, 2024

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation