CVE-2026-9134: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in fooplugins Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel
The FooGallery WordPress plugin is vulnerable to stored cross-site scripting (XSS) via the 'custom_attribute_key' shortcode parameter in versions up to and including 3.1.31. This vulnerability arises from an incomplete blacklist of JavaScript event handlers and failure to properly escape attribute keys when generating gallery container HTML. Authenticated users with contributor-level access or higher can inject malicious scripts that execute when other users view the affected pages.
AI Analysis
Technical Summary
CVE-2026-9134 is a stored XSS vulnerability in the FooGallery plugin for WordPress, specifically in the handling of the 'custom_attribute_key' shortcode parameter. The vulnerability is due to an incomplete JavaScript event handler blacklist in the foogallery_sanitize_javascript() function, which blocks only certain event attributes but allows others like 'onmouseenter'. Additionally, the attribute key is not escaped properly in foogallery_build_container_attributes_safe(), enabling injection of arbitrary scripts. This allows authenticated attackers with contributor or higher privileges to inject scripts that execute in the context of users viewing the injected pages.
Potential Impact
An attacker with contributor-level or higher access can inject malicious JavaScript into pages via the vulnerable shortcode parameter. This script executes in the browsers of users who visit the affected pages, potentially leading to session hijacking, defacement, or other client-side attacks. The vulnerability has a CVSS 3.1 score of 6.4 (medium severity) with network attack vector, low attack complexity, and no user interaction required.
Mitigation Recommendations
No official patch or remediation level is currently confirmed for this vulnerability. Users should monitor the vendor's advisory for updates. Until a fix is available, restrict contributor-level access to trusted users and consider disabling or removing the FooGallery plugin if possible. Avoid using the 'custom_attribute_key' shortcode parameter or sanitize inputs manually if feasible.
CVE-2026-9134: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in fooplugins Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel
Description
The FooGallery WordPress plugin is vulnerable to stored cross-site scripting (XSS) via the 'custom_attribute_key' shortcode parameter in versions up to and including 3.1.31. This vulnerability arises from an incomplete blacklist of JavaScript event handlers and failure to properly escape attribute keys when generating gallery container HTML. Authenticated users with contributor-level access or higher can inject malicious scripts that execute when other users view the affected pages.
CVSS v3.1
Score 6.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-9134 is a stored XSS vulnerability in the FooGallery plugin for WordPress, specifically in the handling of the 'custom_attribute_key' shortcode parameter. The vulnerability is due to an incomplete JavaScript event handler blacklist in the foogallery_sanitize_javascript() function, which blocks only certain event attributes but allows others like 'onmouseenter'. Additionally, the attribute key is not escaped properly in foogallery_build_container_attributes_safe(), enabling injection of arbitrary scripts. This allows authenticated attackers with contributor or higher privileges to inject scripts that execute in the context of users viewing the injected pages.
Potential Impact
An attacker with contributor-level or higher access can inject malicious JavaScript into pages via the vulnerable shortcode parameter. This script executes in the browsers of users who visit the affected pages, potentially leading to session hijacking, defacement, or other client-side attacks. The vulnerability has a CVSS 3.1 score of 6.4 (medium severity) with network attack vector, low attack complexity, and no user interaction required.
Mitigation Recommendations
No official patch or remediation level is currently confirmed for this vulnerability. Users should monitor the vendor's advisory for updates. Until a fix is available, restrict contributor-level access to trusted users and consider disabling or removing the FooGallery plugin if possible. Avoid using the 'custom_attribute_key' shortcode parameter or sanitize inputs manually if feasible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-05-20T18:31:17.531Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2cfea3e617e2d83468ccf1
Added to database: 6/13/2026, 6:54:27 AM
Last enriched: 6/13/2026, 7:09:25 AM
Last updated: 6/13/2026, 8:01:17 AM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.