# Portfolio Gallery – Image Gallery Plugin <= 2.2.0 - Authenticated (Contributor+) Missing Authorization to Limited Attachment Deletion

- **ID:** WPSEC-2026-0628
- **Plugin:** Portfolio Filter Gallery – Photo Gallery (`portfolio-filter-gallery`), https://wordpress.org/plugins/portfolio-filter-gallery/
- **Affected versions:** from 2.0.2 before 2.2.1
- **Fixed in:** 2.2.1 (Update to 2.2.1 or later.)
- **Severity:** Medium 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-862
- **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-0628/

## Description

The Portfolio Gallery – Image Gallery Plugin for WordPress is vulnerable to unauthorized attachment deletion in versions 2.0.2 up to, and including, 2.2.0 due to the pfg_delete_video_thumbnail AJAX action only checking the generic 'delete_posts' capability instead of verifying that the user may delete the specific attachment. This makes it possible for authenticated attackers, with Contributor-level access and above, to permanently delete media library attachments uploaded by other users whose file name begins with 'video-thumbnail-'.

## References

- https://wpsec.com/vuln/WPSEC-2026-0628/
- 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-0628/

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.
