CVE · High

CVE-2026-5821 — Image Optimization – Compress Images and Convert to WebP or AVIF [image-optimization] < 1.7.5

CVE Vulnerability Type Severity Affected Fixed in Published Status
CVE-2026-5821 Image Optimization – Compress Images and Convert to WebP or AVIF [image-optimization] < 1.7.5 External Control of File Name or Path High 8.1 < 1.7.5 1.7.5 2026-07-01

CVE-2026-5821

A WordPress plugin called Image Optimizer contains a vulnerability that allows an authenticated attacker with Author-level access or higher to delete any file on the server. This is due to the plugin's failure to properly verify the paths of backup files before deleting them, allowing an attacker to inject arbitrary file paths into the plugin's metadata. When the attacker deletes an attachment, the plugin will attempt to delete the specified files without checking if they are within the allowed directory, enabling the attacker to delete files outside of the uploads directory.

Based on public CVE data (MITRE/NVD).

Scan your WordPress site free

No signup, no credit card — enter your URL and get a security report in seconds.