{
 "id": "WPSEC-2026-3358",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3358/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3358/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3358/index.md",
 "title": "Image Optimizer <= 1.7.7 - Authenticated (Author+) Arbitrary File Deletion via Attachment Backup Metadata",
 "description": "The Image Optimizer plugin for WordPress is vulnerable to Arbitrary File Deletion via the 'image_optimizer_metadata' attachment backup metadata in all versions up to, and including, 1.7.7. This is due to two gaps: the meta key was not registered as protected, so it could be set through interfaces such as XML-RPC custom fields, and the backup path validator only checked that a stored backup path was inside the uploads directory, not that it belonged to the attachment being processed. This makes it possible for authenticated attackers, with Author-level access and above, to point a backup path on one of their own attachments at any file under the uploads directory, such as other users' media or files other plugins keep there, and have that file deleted when the plugin cleans up backups, for example when the attacker deletes the attachment.",
 "plugin": {
  "slug": "image-optimization",
  "name": "Image Optimizer",
  "full_name": "Image Optimizer – Compress Images and Convert to WebP or AVIF",
  "wordpress_org": "https://wordpress.org/plugins/image-optimization/",
  "advisories_url": "https://wpsec.com/vuln/plugin/image-optimization/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/image-optimization"
 },
 "type": "FILE DELETION",
 "cwe": [
  "CWE-22"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 8.1,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H",
  "severity": "High"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "1.7.8",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 1.7.8"
  ]
 },
 "introduced_in": null,
 "fixed_in": "1.7.8",
 "remediation": "Update to 1.7.8 or later.",
 "fix_released": "2026-11-17T12:46:38+00:00",
 "published": "2026-11-18T13:46:53+00:00",
 "updated": "2026-11-18T13:19:28.172254+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-3358/",
  "https://plugins.svn.wordpress.org/image-optimization/tags/1.7.8/",
  "https://wordpress.org/plugins/image-optimization/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/image-optimization",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-11-18"
 }
}