{
 "id": "WPSEC-2026-0629",
 "url": "https://wpsec.com/vuln/WPSEC-2026-0629/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-0629/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-0629/index.md",
 "title": "Portfolio Gallery – Image Gallery Plugin <= 2.2.0 - Authenticated (Contributor+) Missing Authorization to Media Library Image Upload",
 "description": "The Portfolio Gallery – Image Gallery Plugin for WordPress is vulnerable to unauthorized file upload in versions 2.0.2 up to, and including, 2.2.0 due to the pfg_upload_dropped_files AJAX action only checking the 'edit_posts' capability instead of 'upload_files'. This makes it possible for authenticated attackers, with Contributor-level access and above, to upload image files to the Media Library, which their role does not normally permit.",
 "plugin": {
  "slug": "portfolio-filter-gallery",
  "name": "Portfolio Gallery – Image Gallery Plugin",
  "full_name": "Portfolio Filter Gallery – Photo Gallery",
  "wordpress_org": "https://wordpress.org/plugins/portfolio-filter-gallery/",
  "advisories_url": "https://wpsec.com/vuln/plugin/portfolio-filter-gallery/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/portfolio-filter-gallery"
 },
 "type": "NO AUTHORISATION",
 "cwe": [
  "CWE-862"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.3,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "2.0.2",
    "from_inclusive": true,
    "to": "2.2.1",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 2.0.2 before 2.2.1"
  ]
 },
 "introduced_in": "2.0.2",
 "fixed_in": "2.2.1",
 "remediation": "Update to 2.2.1 or later.",
 "fix_released": "2026-10-07T09:38:53+00:00",
 "published": "2026-10-08T09:45:16+00:00",
 "updated": "2026-10-07T12:34:56.540970+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-0629/",
  "https://plugins.svn.wordpress.org/portfolio-filter-gallery/tags/2.2.1/",
  "https://wordpress.org/plugins/portfolio-filter-gallery/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/portfolio-filter-gallery",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-10-08"
 }
}