WordPress High · CVSS 8.1 CVE-2026-5821 July 2, 2026

Image Optimizer: arbitrary file deletion

Image Optimizer

Arbitrary file deletion in the Image Optimizer component. Threat level: High (CVSS 8.1).

Worried this flaw is on your site? Check it for free in under a minute, or have us fix and secure it right away.

Who is affected

This vulnerability affects: Image Optimizer. If you use this component on your site, check the version and update it as soon as possible.

How dangerous

Rating: High, CVSS 8.1 out of 10. It is worth acting before the flaw is exploited.

What this flaw is

The flaw allows deletion of files the attacker should not be able to touch. In WordPress, deleting the right file is sometimes used to bypass install-time protections.

It can lead to a site outage and, in the right conditions, to a takeover through a repeated, controlled reinstall.

Score breakdown (CVSS vector)

What the CVSS 8.1 rating means in practice:

  • The attack can be carried out remotely, over the internet.
  • Requires an ordinary, low-privileged account.
  • Requires no action from the victim.
  • At risk: integrity (data can be altered), site availability.

Weakness class: CWE-73.

What to do

  • Update the vulnerable component (Image Optimizer) to the latest version.
  • If a patch is not out yet, temporarily disable the vulnerable element.
  • Check whether the site has already been attacked: unusual files, new administrator accounts, redirects.
  • Make a backup before you start making changes.
Do not guess, check

Does this flaw affect your site?

We will run a free audit: we check versions, plugins, and configuration, and tell you plainly whether you are safe.

Request a free audit →

Other current WordPress threats

MemberDash: security vulnerability CVE-2026-16310 · Critical HivePress Authentication: authentication bypass CVE-2026-18056 · High Frontend Admin by DynamiApps: authentication bypass CVE-2026-75816 · Critical SureCart WordPress: security vulnerability CVE-2026-18480 · High See the full list →