# Portfolio Gallery – Image Gallery Plugin <= 2.2.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Image Title

- **ID:** WPSEC-2026-0627
- **Plugin:** Portfolio Filter Gallery – Photo Gallery (`portfolio-filter-gallery`), https://wordpress.org/plugins/portfolio-filter-gallery/
- **Affected versions:** from 2.1.5 before 2.2.1
- **Fixed in:** 2.2.1 (Update to 2.2.1 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-08)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/portfolio-filter-gallery
- **Fix released:** 2026-10-07
- **Published:** 2026-10-08
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0627/

## Description

The Portfolio Gallery – Image Gallery Plugin for WordPress is vulnerable to Stored Cross-Site Scripting via gallery image titles in versions 2.1.5 up to, and including, 2.2.0 due to insufficient input sanitization and output escaping in the built-in lightbox, which inserts the image title (and, when enabled, the image description) into the page as HTML. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts into gallery images that will execute whenever a user opens the image in the lightbox.

## References

- https://wpsec.com/vuln/WPSEC-2026-0627/
- https://plugins.svn.wordpress.org/portfolio-filter-gallery/tags/2.2.1/
- https://wordpress.org/plugins/portfolio-filter-gallery/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-0627/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
