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-15
- Advisory published
- 2026-06-13
- Advisory updated
- 2026-06-15
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].
Sources and references
Verified primary and authoritative sources
-
CVE-2026-9134 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-9134
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-9134 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-9134
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://plugins.trac.wordpress.org/browser/foogallery/trunk/includes/class-gallery-advanced-settings.php
-
Source reference
Unverified legacy reference
URL: https://plugins.trac.wordpress.org/browser/foogallery/trunk/includes/functions.php
-
Source reference
Unverified legacy reference
URL: https://plugins.trac.wordpress.org/browser/foogallery/trunk/includes/functions.php
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.