CVE-2026-9134: 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

Published Jun 13, 2026
·
Updated

The FooGallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'customattributekey' shortcode parameter in versions up to, and including, 3.1.31 This is due to an incomplete JavaScript event handler blacklist in the foogallerysanitizejavascript() 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 foogallerybuildcontainerattributessafe(). 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.

Affected Software

1 affected component
FooGallery Photo Gallery by FooGallery<=3.1.31

Event History

Jun 13, 2026
CVE Published
via MITRE·06:47 AM
Data Sourced
via MITRE·06:47 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 AM
DescriptionSeverityWeakness
May 9, 58583
Event
via FIRST·12:08 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-9134?

CVE-2026-9134 has a medium severity score of 6.4.

2

What type of vulnerability is CVE-2026-9134?

CVE-2026-9134 is an Authenticated Stored Cross-Site Scripting (XSS) vulnerability.

3

How do I fix CVE-2026-9134?

To fix CVE-2026-9134, update the FooGallery plugin to a version later than 3.1.31.

4

What versions of FooGallery are affected by CVE-2026-9134?

FooGallery versions up to and including 3.1.31 are affected by CVE-2026-9134.

5

What is the cause of CVE-2026-9134?

CVE-2026-9134 is caused by an incomplete JavaScript event handler blacklist in the foogallery_sanitize_javascript() function.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203