Home / elemntor / Image Optimizer – Compress Images and Convert to WebP or AVIF / CVE-2026-5821
CVE-2026-5821: is it exploited, and which versions of elemntor Image Optimizer – Compress Images and Convert to WebP or AVIF are affected and fixed?
CVE-2026-5821 is an external Control of File Name or Path vulnerability in elemntor Image Optimizer – Compress Images and Convert to WebP or AVIF. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: Image Optimizer – Compress Images and Convert to WebP or AVIF through 1.7.4 (CVE record by Wordfence). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (8.1, CVSS 3.1, from Wordfence).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:10 UTC.
What is CVE-2026-5821?
Image Optimizer <= 1.7.4 - Authenticated (Author+) Arbitrary File Deletion via Post Meta Field Injection
The Image Optimizer plugin for WordPress is vulnerable to arbitrary file deletion in versions up to and including 1.7.4. This is due to insufficient path validation in the Image_Backup::remove() function where backup file paths stored in post meta are used directly in file deletion operations without verifying they are within the uploads directory. The plugin stores backup file paths in the image_optimizer_metadata post meta field and trusts these paths completely when deleting backups on the delete_attachment hook. An authenticated attacker with Author-level access can edit the image_optimizer_metadata post meta on their own attachments via WordPress's Custom Fields interface, injecting arbitrary absolute file paths into the backups array. When the attacker subsequently deletes the attachment, the plugin calls File_System::delete() on each path without validation. This makes it possible for authenticated attackers, with Author-level access and above, to delete arbitrary files on the server within the web server's filesystem permissions, potentially leading to denial of service, data loss, or security degradation.
From the CVE record by Wordfence, last updated October 28, 2026, 00:43 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| elemntor | Image Optimizer – Compress Images and Convert to WebP or AVIF | through 1.7.4 |
As the CVE record by Wordfence states it, last updated October 28, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-5821?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | Wordfence |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-5821 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, July 2, 2026)
- EPSS
- 0.41% probability of exploitation activity in the next 30 days, percentile 37.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-73 External Control of File Name or Path
Where are the vendor advisories and references?
- https://www.wordfence.com/threat-intel/vulnerabilities/id/a1a00374-e9d6-46f9-a28c-cb7768505787?source=cve
- https://plugins.trac.wordpress.org/browser/image-optimization/trunk/classes/image/image-backup.php#L117
- https://plugins.trac.wordpress.org/browser/image-optimization/tags/1.7.3/classes/image/image-backup.php#L117
- https://plugins.trac.wordpress.org/browser/image-optimization/trunk/modules/backups/components/handle-backups-removing.php#L19
- https://plugins.trac.wordpress.org/browser/image-optimization/tags/1.7.3/modules/backups/components/handle-backups-removing.php#L19
- https://plugins.trac.wordpress.org/browser/image-optimization/trunk/classes/image/image-meta.php#L97
- https://plugins.trac.wordpress.org/browser/image-optimization/tags/1.7.3/classes/image/image-meta.php#L97
- https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3557772%40image-optimization&new=3557772%40image-optimization&sfp_email=&sfph_mail=
- https://research.cleantalk.org/cve-2026-5821
Who found and reported it?
- Dmitrii Ignatyev (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 8, 2026
- Published
- July 2, 2026, 05:35 UTC
- CVE record updated
- October 28, 2026, 00:43 UTC by Wordfence
- NVD
- Deferred, last modified October 28, 2026, 01:16 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:10 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-5821
Is CVE-2026-5821 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 0.41% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of elemntor Image Optimizer – Compress Images and Convert to WebP or AVIF are affected by CVE-2026-5821?
Image Optimizer – Compress Images and Convert to WebP or AVIF through 1.7.4, per the CVE record by Wordfence. The tables above give every range the sources list.
Which version fixes CVE-2026-5821?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-5821?
High (8.1, CVSS 3.1, from Wordfence). The severity table above shows each score with its source.
Where is the official record of CVE-2026-5821?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.