CVE-2026-6295
Last modified
CVE-2026-6295 is a medium-severity vulnerability rated 4.9/10 on the CVSS scale. 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. EPSS estimates a 0.30% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| sh1zen | WP Optimizer – PageSpeed, Cache, Minify & Core Web Vitals | <= 2.5.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-6295?
How severe is CVE-2026-6295?
How do I fix CVE-2026-6295?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-62943btrbk is a tool for creating snapshots and remote backups of…8.7
- CVE-2026-62945TREK is a collaborative travel planner. Prior to 3.1.3, TREK…4.3
- CVE-2026-62946ImageMagick is free and open-source software used for editin…4.7
- CVE-2026-62947OpenWrt is a Linux operating system targeting embedded devic…4.9
- CVE-2026-62948OpenWrt is a Linux operating system targeting embedded devic…9.6
- CVE-2026-62949AsyncSSH is a Python package which provides an asynchronous …6.5
- CVE-2026-62959Coturn is a free open source implementation of TURN and STUN…8.2
- CVE-2026-6296Heap buffer overflow in ANGLE in Google Chrome prior to 147.…9.6
- CVE-2026-62960Git for Windows is the Windows port of Git. Prior to 2.55.0.…7.4
- CVE-2026-62963Centrifugo is an open-source scalable real-time messaging se…8.7
- CVE-2026-6297Use after free in Proxy in Google Chrome prior to 147.0.7727…8.3
- CVE-2026-6298Heap buffer overflow in Skia in Google Chrome prior to 147.0…4.3
Are you affected by CVE-2026-6295?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
