{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4565",
 "modified": "2026-12-03T18:44:18Z",
 "published": "2026-12-03T18:44:18Z",
 "summary": "Media Sync <= 1.5.3 - Authenticated (Author+) Limited Path Traversal via 'media_items' Parameter",
 "details": "The Media Sync plugin for WordPress is vulnerable to Path Traversal via the 'media_items' parameter of the media_sync_import_files AJAX action (and the 'sub_dir' scan parameter) in all versions up to, and including, 1.5.3. This is due to an incomplete path containment check in media_sync_validate_path(), which only verified that the resolved path began with the uploads directory string, with no trailing directory separator, and did not exclude other sites' upload folders on multisite. This makes it possible for authenticated attackers with Author-level access and above to import files from sibling directories that share the uploads path prefix (for example uploads-backup, or sites/20 when the subsite's uploads directory is sites/2) into the Media Library. On multisite installations, Authors on the main site can also list and import files that belong to other sites. They can also import a file that is already in the Media Library a second time by writing its path in another form, for example with \"/./\" or through a symlinked folder, and deleting that second attachment then deletes the original file.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "media-sync"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "1.5.0"
      },
      {
       "fixed": "1.5.4"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 1.5.0 before 1.5.4"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4565/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/media-sync/tags/1.5.4/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/media-sync/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4565/",
  "cwe_ids": [
   "CWE-22"
  ],
  "vulnerability_type": "TRAVERSAL",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
