WordPress security changelog
MEDIUM CVE-2026-2712 Deferred

WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance: A security weakness

WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance is affected by a security weakness. Exploitation requires at least subscriber-level access. The resulting impact depends on how the affected component exposes the vulnerable operation. The published affected range is <= 4.5.0.

CVE / CNA score 5.4 CVSS 3.1 · security@wordfence.com
NVD score Pending NVD has not published its own CVSS assessment.
Component
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance
Plugin slug
wp-optimize
Affected
<= 4.5.0
Safe version
> 4.5.0
Published
Apr 10, 2026
Weakness
CWE-863 — Incorrect Authorization

This CVE was published Apr 10, 2026 and is one of 3 known issues for this plugin.

Update, patch or deactivate.

Update WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance to a release after 4.5.0, or disable and remove it until a fixed version is available.

A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

The WP-Optimize plugin for WordPress is vulnerable to unauthorized access of functionality due to missing capability checks in the `receive_heartbeat()` function in `includes/class-wp-optimize-heartbeat.php` in all versions up to, and including, 4.5.0. This is due to the Heartbeat handler directly invoking `Updraft_Smush_Manager_Commands` methods without verifying user capabilities, nonce tokens, or the allowed commands whitelist that the normal AJAX handler (`updraft_smush_ajax`) enforces. This makes it possible for authenticated attackers, with Subscriber-level access and above, to invoke admin-only Smush operations including reading log files (`get_smush_logs`), deleting all backup images (`clean_all_backup_images`), triggering bulk image processing (`process_bulk_smush`), and modifying Smush options (`update_smush_options`).

CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L

Primary and upstream sources