Skip to content
Laskyr

Plugins · wp-compress-image-optimizer · data as of 2026-11-04

Is WP Compress safe? Known vulnerabilities and latest version

No known unpatched vulnerabilities in the latest version (7.30.45)

As of 2026-11-04. 19 issues are on record for older versions; version 7.26.00 or newer fixes all of them that state a fix.

Latest version
7.30.45
Last updated
2026-11-02
Active installs
9,000+
Known issues on record
19
Unpatched in latest
0
Tested up to WP
7.1.4 · PHP 8.0+

Everything you need for a faster website – smart optimization, advanced caching, adaptive images, WebP creation, script improvements, optional CDN del … — by AresIT

What to do

  1. Update to the latest version (7.30.45). Anything older than 7.26.00 has at least one known issue listed below. Dashboard → Updates, or Plugins → “update now”.
  2. If you cannot update right away, deactivate it until you can.
  3. Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
  4. If you ran a vulnerable version and something looks off (spam pages, strange admins, redirects), run the free scan.

With WP-CLI: wp plugin get wp-compress-image-optimizer --field=version shows what you run; wp plugin update wp-compress-image-optimizer updates it.

Check your version

Known vulnerabilities

19 on record, newest first. “Affected” is the version range the source gives; “fixed in” is the version the source names, or (marked *) the first wordpress.org release after the last affected version.

medium 5.3 CVE-2026-120551 · published 2026-11-03

Missing authorization check in WP Compress (7.22.01 and older)

Affected
7.22.01 and older
Fixed in
7.22.38 *
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The WP Compress – Instant Performance & Speed Optimization plugin for WordPress is vulnerable to authorization bypass in all versions up to, and including, 7.22.01. This is due to the plugin not properly verifying that a user is authorized to perform an action. This makes it possible for unauthenticated attackers to link the victim site to an attacker-controlled WP Compress account, overwrite plugin settings to an aggressive live-CDN preset, and gain the shared api_key that authenticates all nopriv HMAC-gated endpoints — enabling full control over cache purging, file deletion, opcode cache invalidation, and other privileged plugin operations. This vulnerability only affects fresh installations or lite/free-mode installs where no api_key is already stored, as the sole guard fails open when the stored key is absent.

NVD CVE-2026-120551Wordfence advisoryCode change (fix)Plugin source

medium 4.8 CVE-2026-104755 · published 2026-10-16

Privilege escalation in WP Compress (7.25.00 and older)

Affected
7.25.00 and older
Fixed in
7.26.00 *
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The WP Compress – Instant Performance & Speed Optimization plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 7.25.00 The vulnerability exists because the `start_comms` dispatcher (`wps_ic_comms::start_comms`), hooked on every front-end request, gates access only by comparing the caller-supplied `apikey` parameter against the stored plugin API key with no WordPress capability check and no nonce verification, then passes the unvalidated `group`, `setting`, and `value` parameters directly to `change_setting()`, which writes them into the `WPS_IC_SETTINGS` option without an allow-list. This makes it possible for unauthenticated attackers to write arbitrary permission keys into the plugin's settings, causing `wps_ic_users::checkAndAddCaps()` to grant any WordPress role — including Subscriber — the `manage_wpc_settings` capability and thereby achieve plugin-administrator-equivalent control over the plugin's optimization, CDN, and critical-CSS surfaces. The API key required to pass the authorization check can itself be obtained without authentication via the `wpc_send_critical_remote` nopriv AJAX action: when the external critical-CSS service returns an `apiResults` field, `initCritical()` echoes the stored plugin API key back to the caller in a `wp_send_json_success` response, completing the exploit chain entirely without a WordPress login.

NVD CVE-2026-104755Wordfence advisoryCode change (fix)Plugin source

high 8.2 CVE-2026-84757 · published 2026-09-03

Missing authorization check in WP Compress (7.21.28 and older)

Affected
7.21.28 and older
Fixed in
7.22.0
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Unauthenticated Settings Change in WP Compress <= 7.21.28 versions.

NVD CVE-2026-84757Patchstack advisory

critical 10.0 CVE-2026-73343 · published 2026-08-18

Remote code execution in WP Compress (older than 7.20.01)

Affected
older than 7.20.01
Fixed in
7.20.01
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Unauthenticated Remote Code Execution (RCE) in WP Compress < 7.20.01 versions.

NVD CVE-2026-73343Patchstack advisory

medium 6.5 CVE-2026-17608 · published 2026-08-16

Cross-site request forgery (CSRF) in WP Compress (7.10.09 and older)

Affected
7.10.09 and older
Fixed in
7.20.01 *
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The WP Compress – Instant Performance & Speed Optimization plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 7.10.09. This is due to missing or incorrect nonce validation on the (top-level template code) function. This makes it possible for unauthenticated attackers to delete arbitrary WordPress options, including critical ones such as siteurl, home, active_plugins, template, and stylesheet, causing site outage or a full plugin and theme reset via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.

NVD CVE-2026-17608Wordfence advisoryCode change (fix)Plugin source

medium 6.1 CVE-2026-9066 · published 2026-07-23

Reflected cross-site scripting (XSS) in WP Compress (older than 7.10.04)

Affected
older than 7.10.04
Fixed in
7.10.04
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by CISA ADP
Details from the advisory

The WP Compress WordPress plugin before 7.10.04 does not validate the value of a query parameter that controls the asset CDN host before using it to build the URLs of JavaScript files emitted on the page, leading to Reflected XSS. When a visitor follows a crafted link, the WP Compress WordPress plugin before 7.10.04's loader injects script elements pointing to an attacker-controlled origin, which lets the attacker execute arbitrary JavaScript in the visitor's session on the target site.

NVD CVE-2026-9066WPScan advisory

medium 5.3 CVE-2026-25370 · published 2026-02-19

Missing authorization check in WP Compress (6.60.28 and older)

Affected
6.60.28 and older
Fixed in
6.60.29
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Missing Authorization vulnerability in AresIT WP Compress wp-compress-image-optimizer allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects WP Compress: from n/a through <= 6.60.28.

NVD CVE-2026-25370Patchstack advisory

medium 5.3 CVE-2025-57899 · published 2025-09-22

Missing authorization check in WP Compress (6.50.54 and older)

Affected
6.50.54 and older
Fixed in
6.50.55
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by Patchstack
Details from the advisory

Missing Authorization vulnerability in AresIT WP Compress wp-compress-image-optimizer allows Accessing Functionality Not Properly Constrained by ACLs.This issue affects WP Compress: from n/a through <= 6.50.54.

NVD CVE-2025-57899Patchstack advisory

critical 9.8 CVE-2025-47479 · published 2025-07-04

Security issue in WP Compress (6.30.30 and older)

Affected
6.30.30 and older
Fixed in
6.30.31
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Weak Authentication vulnerability in AresIT WP Compress wp-compress-image-optimizer allows Authentication Abuse.This issue affects WP Compress: from n/a through <= 6.30.30.

NVD CVE-2025-47479Patchstack advisory

high 8.8 CVE-2025-47546 · published 2025-05-07

Cross-site request forgery (CSRF) in WP Compress (6.30.30 and older)

Affected
6.30.30 and older
Fixed in
6.30.31
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Cross-Site Request Forgery (CSRF) vulnerability in AresIT WP Compress wp-compress-image-optimizer allows Cross Site Request Forgery.This issue affects WP Compress: from n/a through <= 6.30.30.

NVD CVE-2025-47546Patchstack advisory

high 8.8 CVE-2025-2110 · published 2025-03-26

Missing authorization check in WP Compress (6.30.15 and older)

Affected
6.30.15 and older
Fixed in
6.30.26 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The WP Compress – Instant Performance & Speed Optimization plugin for WordPress is vulnerable to unauthorized access, modification, and loss of data due to missing capability checks on its on its AJAX functions in all versions up to, and including, 6.30.15. This makes it possible for authenticated attackers, with Subscriber-level access and above, to compromise the site in various ways depending on the specific function exploited - for example, by retrieving sensitive settings and configuration details, or by altering and deleting them, thereby disclosing sensitive information, disrupting the plugin’s functionality, and potentially impacting overall site performance.

NVD CVE-2025-2110Wordfence advisoryCode change (fix)wordpress.orgPlugin source

medium 5.8 CVE-2025-2109 · published 2025-03-25

Server-side request forgery (SSRF) in WP Compress (6.30.15 and older)

Affected
6.30.15 and older
Fixed in
6.30.26 *
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The WP Compress – Instant Performance & Speed Optimization plugin for WordPress is vulnerable to Server-Side Request Forgery in all versions up to, and including, 6.30.15 via the init() function. This makes it possible for unauthenticated attackers to make web requests to arbitrary locations originating from the web application and can be used to query information from internal services.

NVD CVE-2025-2109Wordfence advisoryCode change (fix)wordpress.orgPlugin source

medium 6.1 CVE-2024-12047 · published 2025-01-04

Reflected cross-site scripting (XSS) in WP Compress (6.30.03 and older)

Affected
6.30.03 and older
Fixed in
6.30.26 *
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The WP Compress – Instant Performance & Speed Optimization plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the ‘custom_server’ parameter in all versions up to, and including, 6.30.03 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

NVD CVE-2024-12047Wordfence advisoryCode change (fix)wordpress.orgPlugin source

medium 6.1 CVE-2024-47384 · published 2024-10-05

Reflected cross-site scripting (XSS) in WP Compress (6.20.13 and older)

Affected
6.20.13 and older
Fixed in
6.21.01
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in AresIT WP Compress wp-compress-image-optimizer allows Reflected XSS.This issue affects WP Compress: from n/a through <= 6.20.13.

NVD CVE-2024-47384Patchstack advisory

medium 4.3 CVE-2024-4445 · published 2024-05-14

Cross-site scripting (XSS) in WP Compress (6.20.01 and older)

Affected
6.20.01 and older
Fixed in
6.30.26 *
Access needed (per CVSS)
Needs a low-level account (e.g. subscriber)
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The WP Compress – Image Optimizer [All-In-One] plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the several functions in versions up to, and including, 6.20.01. This makes it possible for authenticated attackers, with subscriber-level permissions and above, to edit plugin settings, including storing cross-site scripting, in multisite environments.

NVD CVE-2024-4445Wordfence advisoryCode change (fix)Plugin source

medium 6.1 CVE-2023-6812 · published 2024-05-14

Open redirect in WP Compress (6.20.01 and older)

Affected
6.20.01 and older
Fixed in
6.30.26 *
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The WP Compress – Image Optimizer [All-In-One plugin for WordPress is vulnerable to Open Redirect in all versions up to, and including, 6.20.01. This is due to insufficient validation on the redirect url supplied via the 'css' parameter. This makes it possible for unauthenticated attackers to redirect users to potentially malicious sites if they can successfully trick them into performing an action.

NVD CVE-2023-6812Wordfence advisoryCode change (fix)

high 8.8 CVE-2024-32106 · published 2024-04-11

Cross-site request forgery (CSRF) in WP Compress (6.10.35 and older)

Affected
6.10.35 and older
Fixed in
6.11.01
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

Cross-Site Request Forgery (CSRF) vulnerability in WP Compress WP Compress – Image Optimizer [All-In-One].This issue affects WP Compress – Image Optimizer [All-In-One]: from n/a through 6.10.35.

NVD CVE-2024-32106Patchstack advisory

high 7.5 CVE-2024-1934 · published 2024-04-09

Missing authorization check in WP Compress (6.11.10 and older)

Affected
6.11.10 and older
Fixed in
6.30.26 *
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by Wordfence
Details from the advisory

The WP Compress – Image Optimizer plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'wps_local_compress::__construct' function in all versions up to, and including, 6.11.10. This makes it possible for unauthenticated attackers to reset the CDN region and set a malicious URL to deliver images.

NVD CVE-2024-1934Wordfence advisoryCode change (fix)Plugin source

high 7.5 CVE-2023-6699 · published 2024-01-11

Path traversal / file read in WP Compress (6.10.33 and older)

Affected
6.10.33 and older
Fixed in
6.30.26 *
Access needed (per CVSS)
No login needed
Range from
CVE record (the advisory publisher) · score by NVD
Details from the advisory

The WP Compress – Image Optimizer [All-In-One] plugin for WordPress is vulnerable to Directory Traversal in all versions up to, and including, 6.10.33 via the css parameter. This makes it possible for unauthenticated attackers to read the contents of arbitrary files on the server, which can contain sensitive information.

NVD CVE-2023-6699Wordfence advisoryCode change (fix)

Recent activity

Browse vulnerabilities

Where this data comes from

Badge for your site or docs (states facts with a date, not a verdict):
WP Compress vulnerability status badge
<a href="https://laskyr.com/plugins/wp-compress-image-optimizer"><img src="https://laskyr.com/plugins/wp-compress-image-optimizer/badge.svg" alt="WP Compress vulnerability status"></a>

← Check another plugin · Free hacked-site scan

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit