Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 78%

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

0
Medium
VulnerabilityCVE-2026-9134cvecve-2026-9134cwe-79
Published: 06/13/2026 (06/13/2026, 06:47:59 UTC)
Source: CVE Database V5
Vendor/Project: fooplugins
Product: Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel

Description

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.

CVSS v3.1

Score 6.4medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Affected software

Affected versions
<=3.1.31

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/20/2026, 16:04:42 UTC

Technical Analysis

CVE-2026-9134 is a stored XSS vulnerability in the FooGallery plugin for WordPress, affecting versions <=3.1.31. The issue stems from the foogallery_sanitize_javascript() function which only blocks a subset of HTML event attributes, missing others like 'onmouseenter'. Additionally, the foogallery_build_container_attributes_safe() function fails to escape the 'custom_attribute_key' shortcode parameter properly when generating gallery container HTML. This combination allows authenticated attackers with contributor-level privileges or higher to inject arbitrary JavaScript that executes in the context of users viewing the injected pages.

Potential Impact

An attacker with contributor-level access or higher can inject persistent malicious scripts into pages using the vulnerable shortcode parameter. These scripts execute in the browsers of users who view the affected pages, potentially leading to session hijacking, defacement, or other actions permitted by the victim's browser context. The vulnerability does not require user interaction beyond viewing the page and does not affect availability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict contributor-level access to trusted users only and consider disabling or removing the FooGallery plugin if possible. Monitor vendor channels for updates and apply patches promptly once released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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: 06/13/2026, 06:54:27 UTC

Last enriched: 06/20/2026, 16:04:42 UTC

Last updated: 07/31/2026, 19:23:00 UTC

Views: 84

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses