{"id":"CVE-2026-9134","aliases":["CVE-2026-9134"],"related":[],"kind":"vulnerability","state":"published","title":"Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel <= 3.1.31 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'custom_attribute_key' Shortcode Parameter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El plugin FooGallery para WordPress es vulnerable a Cross-Site Scripting Almacenado a través del parámetro de shortcode 'custom_attribute_key' en versiones hasta la 3.1.31, inclusive. Esto se debe a una lista negra incompleta de gestores de eventos JavaScript en la función foogallery_sanitize_javascript(), que bloquea solo un subconjunto de atributos de eventos HTML (onmouseover, onmouseout, onpointerenter, onclick, onload, onchange, onerror) mientras permite otros como 'onmouseenter', combinado con la falla al escapar la clave del atributo al construir el HTML del contenedor de la galería en foogallery_build_container_attributes_safe(). Esto hace posible que atacantes autenticados, con acceso de nivel de colaborador y superior, inyecten scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada.","source":"nvd"}],"published":"2026-06-13T06:47:59.690Z","modified":"2026-07-23T09:10:00.113Z","severity":{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"3.1.31","status":"affected"}],"vendor":"fooplugins","product":"Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel","source":"cvelist"}],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/dd9650e6-7c3c-4510-9749-a3503924855f?source=cve","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/foogallery/trunk/includes/functions.php#L480","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/foogallery/trunk/includes/class-gallery-advanced-settings.php#L148","tags":[],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/foogallery/trunk/includes/functions.php#L1516","tags":[],"sources":["cvelist","nvd"]},{"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","tags":[],"sources":["cvelist","nvd"]}],"credits":["Dmitrii Ignatyev"],"assigner":"Wordfence","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-15T17:02:38.170Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-9134","url":"https://www.cve.org/CVERecord?id=CVE-2026-9134","licence":"CVE Terms of Use","modified":"2026-06-15T17:02:45.315Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-9134","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9134","licence":"Public domain","modified":"2026-07-23T09:10:00.113Z"}],"updatedAt":"2026-11-25T22:59:24.612Z","epss":{"score":0.00301,"percentile":0.24559,"date":"2026-12-02T12:00:21.000Z"}}