XSS in Fooplugins Photo Gallery By Foogallery : Responsive Image Gallery, Masonry & Carousel
CVE-2026-9134
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.003 (23.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 24th percentile — 23.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: +0.000
Affected products
Weakness classification (CWE)
References
- plugins.trac.wordpress.org/browser/foogallery/trunk/includes/class-gallery-adva…
- plugins.trac.wordpress.org/browser/foogallery/trunk/includes/functions.php
- plugins.trac.wordpress.org/browser/foogallery/trunk/includes/functions.php
- plugins.trac.wordpress.org/changeset/3542524/foogallery/tags/3.1.32/includes/fu…
- www.wordfence.com/threat-intel/vulnerabilities/id/dd9650e6-7c3c-4510-9749-a3503…
Frequently asked questions
- What is CVE-2026-9134?
- CVE-2026-9134 is a medium-severity vulnerability in Fooplugins Photo Gallery By Foogallery : Responsive Image Gallery, Masonry & Carousel, classified under Cross-site Scripting. CVSS score: 6.4/10. Published 2026-06-13.
- How severe is CVE-2026-9134?
- Medium severity. CVSS v3 base score is 6.4 out of 10.