Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
sh1zen WP Optimizer – PageSpeed, Cache, Minify & Core Web Vitals
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

WordPress 的 WP Optimizer 插件在所有版本(包括 2.5.0 及更早版本)中均存在 SQL 注入漏洞,攻击向量为 's' 参数。该漏洞源于 方法中一个不安全的子查询检测分支:当用户提供的值匹配正则表达式 时,该分支会将值用括号包裹并直接嵌入 SQL 字符串中,而没有进行任何转义或加引号处理。 相比之下,正常的 LIKE 代码路径会正确使用 并将值用单引号包裹;但这个分支完全绕过了这些保护措施。由于攻击载荷(以 开头)中不包含单引号,WordPress 的 机制无法提供保护。 这使得拥有管理员权

CVSS 4.9 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-6295

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
WP Optimizer <= 2.5.0 - Authenticated (Administrator+) SQL Injection via 's' Parameter
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
sh1zen WP Optimizer – PageSpeed, Cache, Minify & Core Web Vitals 0 ~ 2.5.0 -

II. Public POCs for CVE-2026-6295

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-6295

登录查看更多情报信息。

Proof of Concept for CVE-2026-6295 (1)

Other References for CVE-2026-6295 (2)

Other References for CVE-2026-6295 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-6295

No comments yet


Leave a comment