Radar sectionsDatabase
Check my site
WordPress plugin

WP Optimizer <= 2.5.0 — Authenticated (Administrator+) SQL Injection via 's' Parameter

CVE-2026-6295Published · Updated

Action summary

Affected: ≤2.5.0Update to 2.6.0 or newer

All remediation steps
Severity
Medium4.9
CVSS
4.9
CVSS 3.1 · CNA (Wordfence)
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
What does this vector mean?
AV:N Attack vector
Network
AC:L Attack complexity
Low
PR:H Privileges required
High
UI:N User interaction
None
S:U Scope
Unchanged
C:H Confidentiality
High
I:N Integrity
None
A:N Availability
None
Weakness
CWE-89 SQL Injection
Required access
Unknown
Exploit prediction (EPSS)
0.5% chance in 30 days43th percentile
CISA KEV
Not listed

Am I affected?

WP Optimizer – PageSpeed, Cache, Minify & Core Web Vitals wp-optimizer

  1. Affected≤ 2.5.0
  2. Patched in2.6.0

Update to 2.6.0 or newer.

You are affected if you run ≤ 2.5.0. Version 2.6.0 and later are not affected by this issue.

  • Check your version: in wp-admin go to Plugins → Installed Plugins and read the version under WP Optimizer – PageSpeed, Cache, Minify & Core Web Vitals.
  • No admin access? Run a passive check of your site. It reads public files only.

What to do

  1. Update to version 2.6.0, or a newer patched version
  2. Rotate administrator passwords and application secrets if the site ran a vulnerable version while publicly reachable.
  3. Watch WP Optimizer – PageSpeed, Cache, Minify & Core Web Vitals to get an email when the next vulnerability is published.

Advisory

Source description from Wordfence Intelligence, credited to san6051.

The WP Optimizer plugin for WordPress is vulnerable to SQL Injection via the 's' parameter in all versions up to and including 2.5.0. This is due to an unsafe subquery-detection branch in the Query::parse_key_compare_field() method that, when the user-supplied value matches the regex ^[(\s]*SELECT\s+, wraps the value in parentheses and embeds it directly into the SQL string without any escaping or quoting. While the normal LIKE code path correctly uses esc_sql($wpdb->esc_like(...)) and wraps the value in single quotes, this branch completely bypasses those protections. Because the attack payload (SELECT ...) contains no single quotes, WordPress's wp_magic_quotes() provides no protection. This makes it possible for authenticated attackers with administrator-level access to inject arbitrary SQL subqueries — including time-based blind payloads — that can be used to extract sensitive information from the database.

Exploits & references

Proof-of-concept & detection

No public proof-of-concept or detection template is known for this vulnerability.

Advisories & patches

More in WP Optimizer – PageSpeed, Cache, Minify & Core Web Vitals

All 2
More vulnerabilities in WP Optimizer – PageSpeed, Cache, Minify & Core Web Vitals
SeverityVulnerabilityCVEPublished
Medium4.3Cross-Site Request Forgery
≤2.3.6No patch available
CVE-2025-53314

Same weakness (SQL Injection)

All SQL Injection
Other SQL Injection vulnerabilities
SeverityVulnerabilityCVEPublished
High7.2Unauthenticated Stored Cross-Site Scripting via Comment User-Agent HeaderCVE-2026-120688
Critical9.8Unauthenticated Arbitrary File Upload via File Upload via Public Form SubmissionCVE-2026-125055
Critical9.8Unauthenticated PHP Object Injection to Remote Code Execution via 'form' ParameterCVE-2026-119077
Medium5.3Unauthenticated Sensitive Information Exposure in 'search' Parameter
Customer Reviews for WooCommerce≤5.127.0Update to 5.128.0
CVE-2026-121518

Timeline

  1. CVE published

    Severity medium, CVSS 4.9

  2. Record last updated

Sources & licenses

Wordfence record
Vulnerability data
Wordfence Intelligence. Copyright 2012-2026 Defiant Inc. Licensed under the CC BY-SA 4.0.
CVE® identifiers
Copyright 1999-2026 The MITRE Corporation. Used under the CVE Program. CVE® is a registered trademark of The MITRE Corporation.
CVSS / CWE
National Vulnerability Database (NVD), shown unmodified. This product uses the NVD API but is not endorsed or certified by the NVD.
EPSS
Exploit Prediction Scoring System by FIRST.org.
VulnCrest content
Summary, remediation guidance and page layout © VulnCrest. Not sourced from NVD.

How we use these sources

Search VulnCrest Radar

Are you sure?