CVE Explorer
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","product":"Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel","vendor":"fooplugins","versions":[{"lessThanOrEqual":"3.1.31","status":"affected","version":"0","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:b4ab570a9c6ecd470cc54bc01153b12c945b1e721940cdb656bcb24fad3800c8 · sha256:21ad6214261c7620… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"baseScore":6.4,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:b4ab570a9c6ecd470cc54bc01153b12c945b1e721940cdb656bcb24fad3800c8 · sha256:21ad6214261c7620… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:b4ab570a9c6ecd470cc54bc01153b12c945b1e721940cdb656bcb24fad3800c8 · sha256:21ad6214261c7620… · /containers/cna/problemTypes/0/descriptions/0
Source references
5 source assertions{"url":"https://plugins.trac.wordpress.org/browser/foogallery/trunk/includes/class-gallery-advanced-settings.php#L148"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:b4ab570a9c6ecd470cc54bc01153b12c945b1e721940cdb656bcb24fad3800c8 · sha256:21ad6214261c7620… · /containers/cna/references/2
{"url":"https://plugins.trac.wordpress.org/browser/foogallery/trunk/includes/functions.php#L1516"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:b4ab570a9c6ecd470cc54bc01153b12c945b1e721940cdb656bcb24fad3800c8 · sha256:21ad6214261c7620… · /containers/cna/references/3
{"url":"https://plugins.trac.wordpress.org/browser/foogallery/trunk/includes/functions.php#L480"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:b4ab570a9c6ecd470cc54bc01153b12c945b1e721940cdb656bcb24fad3800c8 · sha256:21ad6214261c7620… · /containers/cna/references/1
{"url":"https://plugins.trac.wordpress.org/changeset/3542524/foogallery/tags/3.1.32/includes/functions.php?old=3535930&old_path=foogallery%2Ftags%2F3.1.31%2Fincludes%2Ffunctions.php"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:b4ab570a9c6ecd470cc54bc01153b12c945b1e721940cdb656bcb24fad3800c8 · sha256:21ad6214261c7620… · /containers/cna/references/4
{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/dd9650e6-7c3c-4510-9749-a3503924855f?source=cve"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:b4ab570a9c6ecd470cc54bc01153b12c945b1e721940cdb656bcb24fad3800c8 · sha256:21ad6214261c7620… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.