PatchSiren cyber security CVE debrief
CVE-2026-9134 fooplugins CVE debrief
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.
- Vendor
- fooplugins
- Product
- Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel
- CVSS
- MEDIUM 6.4
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-06-13
- Original CVE updated
- 2026-06-13
- Advisory published
- 2026-06-13
- Advisory updated
- 2026-06-13
Who should care
Users of the FooGallery plugin for WordPress, particularly those with contributor-level access and above, should be aware of this vulnerability and take steps to mitigate it.
Technical summary
The vulnerability is caused by an incomplete JavaScript event handler blacklist in the foogallery_sanitize_javascript() function and the failure to escape the attribute key when building the gallery container HTML in foogallery_build_container_attributes_safe().
Defensive priority
MEDIUM
Recommended defensive actions
- Update to version 3.1.32 or later
- Use a Web Application Firewall (WAF) to detect and prevent attacks
- Limit contributor-level access and above to trusted users
Evidence notes
The vulnerability was reported by [email protected] and can be found in the following references: [ref-4], [ref-5], [ref-6], [ref-7], [ref-8].
Official resources
CVE-2026-9134 was published on 2026-06-13T07:16:15.107Z and has not been modified since then.