Arbitrary File Deletion Vulnerability in Image Optimizer Plugin for WordPress

Check todayData or code tampering over the network by a logged-in user.
8.1HIGH

CVE-2026-5821

Key Information:

Vendor

WordPress

CVE ID
CVE ID:
CVE-2026-5821
Vendor
CVE Published:
2 July 2026

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory β†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Image Optimizer – Compress Images And Convert To Webp Or Avif. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Check today"
  • Its CVSS severity is high (8.1).

What is CVE-2026-5821?

The Image Optimizer plugin for WordPress has a vulnerability that allows authenticated users with Author-level permissions to delete arbitrary files from the server. This occurs because the plugin lacks proper validation of file paths in its backup deletion process. Specifically, the Image_Backup::remove() function uses backup file paths directly from the post meta without verifying if they reside in the allowed uploads directory. An attacker can exploit this by modifying the metadata of their attachments through the WordPress Custom Fields interface to inject malicious absolute paths. Consequently, when the attacker deletes their attachment, the plugin executes file deletion on these unvalidated paths, potentially leading to critical consequences such as denial of service, data loss, or overall security degradation.

Affected Version(s)

Image Optimizer – Compress Images and Convert to WebP or AVIF 0 <= 1.7.4

References

SQL Injection Vulnerability in Hello Clever Gateway for WooCommerce by Hello Clever Pty

CVE-2026-136113
WordPressHello Clever Gateway F...9.3CRITICAL

Object Injection in Ultimate Member

CVE-2026-134481
WordPressUltimate MemberπŸ˜„9.8CRITICAL

Unauthorized Password Reset in User Registration Aide Plugin for WordPress

CVE-2026-121385
WordPressUser Registration AideπŸ‘Ύ9.8CRITICAL
View more WordPress vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
8.1
Severity:
HIGH
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Credit

Dmitrii Ignatyev
.