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.
CVE-2026-6295
Score 4.9 from GitHub Security Advisory published 2026-09-19. a secondary CVSS source baseline 4.9; sources differ by 0.0.
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 4.9
- EG Score
- 4.9(high)
- EG Risk
- 22(Track)EG Risk 22/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity49% × 45%Exploitation1% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 41%
- KEV
- Not listed
Published
September 19, 2026
Last Modified
September 21, 2026
References (6)
- security@wordfencehttps://plugins.trac.wordpress.org/browser/wp-optimizer/tags/2.3.8/modules/supporters/activity-log/ActivityLog_Table.class.php#L343
- security@wordfencehttps://plugins.trac.wordpress.org/browser/wp-optimizer/tags/2.3.8/vendors/wps-framework/Query.class.php#L455
- security@wordfencehttps://plugins.trac.wordpress.org/browser/wp-optimizer/trunk/modules/supporters/activity-log/ActivityLog_Table.class.php#L343
- security@wordfencehttps://plugins.trac.wordpress.org/browser/wp-optimizer/trunk/vendors/wps-framework/Query.class.php#L455
- security@wordfencehttps://plugins.trac.wordpress.org/changeset/3508033
- security@wordfencehttps://www.wordfence.com/threat-intel/vulnerabilities/id/4da302ab-8a5d-481b-8b28-a798e0982893?source=cve
Vendor Advisories for CVE-2026-6295(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 20× in last 7d / 20× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-09-24 14:23 UTCEG score recompute
- 2026-09-24 14:23 UTCGHSA enrichment
- 2026-09-23 17:54 UTCEPSS rescore
- 2026-09-23 14:09 UTCEG score recompute
- 2026-09-23 14:09 UTCGHSA enrichment
- 2026-09-22 13:56 UTCEG score recompute
- 2026-09-22 13:55 UTCGHSA enrichment
- 2026-09-21 21:09 UTCEPSS rescore
- 2026-09-21 13:42 UTCEG score recompute
- 2026-09-21 13:42 UTCGHSA enrichment
- 2026-09-20 20:16 UTCEPSS rescore
- 2026-09-20 14:42 UTCEG score recompute
- 2026-09-20 14:42 UTCGHSA enrichment
- 2026-09-19 14:26 UTCEG score recompute
- 2026-09-19 14:26 UTCGHSA enrichment
- 2026-09-19 14:10 UTCEG score recompute
- 2026-09-19 14:10 UTCGHSA enrichment
- 2026-09-19 08:18 UTCEG score recompute
- 2026-09-19 07:51 UTCEG score recompute
- 2026-09-19 07:50 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-6295?
When was CVE-2026-6295 disclosed?
Is CVE-2026-6295 actively exploited?
What is the CVSS score of CVE-2026-6295?
How do I remediate CVE-2026-6295?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-6295
Is Your Infrastructure Affected by CVE-2026-6295?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.