PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-6295 sh1zen CVE debrief

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 vulnerability allows authenticated attackers with administrator-level access to inject arbitrary SQL subqueries, potentially leading to sensitive information extraction from the database. The vulnerability is caused by an unsafe subquery-detection branch in the Query::parse_key_compare_field() method. The attack payload can be used to extract sensitive information from the database, and defenders should verify the patch status of WP Optimizer and monitor database activity for suspicious queries.

Vendor
sh1zen
Product
WP Optimizer – PageSpeed, Cache, Minify & Core Web Vitals
CVSS
MEDIUM 4.9
CISA KEV
Not listed in stored evidence
Original CVE published
2026-09-19
Original CVE updated
2026-09-21
Advisory published
2026-09-19
Advisory updated
2026-09-21

Who should care

WordPress administrators and security teams responsible for patching and monitoring WP Optimizer plugin should prioritize patching and monitoring. They should also verify administrator-level access controls, monitor database activity for suspicious queries, and review compensating controls for exposed systems while remediation is scheduled and verified.

Why it matters

CVE-2026-6295 is a SQL Injection vulnerability in the WP Optimizer plugin for WordPress. Authenticated attackers with administrator-level access can inject arbitrary SQL subqueries, potentially leading to sensitive information extraction. WordPress administrators and security teams should prioritize patching and monitoring.

  • Potential extraction of sensitive information from the database
  • Verification of administrator-level access controls
  • Monitoring database activity for suspicious queries

Technical summary

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. The vulnerability allows authenticated attackers with administrator-level access to inject arbitrary SQL subqueries, potentially leading to sensitive information extraction from the database. The attack payload can be used to extract sensitive information from the database, and defenders should verify the patch status of WP Optimizer and monitor database activity for suspicious queries.

Defensive priority

High priority for patching and verification

Recommended defensive actions

  • Patch WP Optimizer plugin to version above 2.5.0
  • Verify administrator-level access controls
  • Monitor database activity for suspicious queries
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is caused by an unsafe subquery-detection branch in the Query::parse_key_compare_field() method. The attack payload can be used to extract sensitive information from the database. 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 ^[(]*(SELECT) +), wraps the value in parentheses and The

Sources and references

Verified primary and authoritative sources

  • CVE-2026-6295 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-6295

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-6295 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-6295

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://plugins.trac.wordpress.org/browser/wp-optimizer/tags/2.3.8/modules/supporters/activity-log/ActivityLog_Table.class.php

    [email protected]

  • Source reference

    Unverified legacy reference

    URL: https://plugins.trac.wordpress.org/browser/wp-optimizer/tags/2.3.8/vendors/wps-framework/Query.class.php

    [email protected]

  • Source reference

    Unverified legacy reference

    URL: https://plugins.trac.wordpress.org/browser/wp-optimizer/trunk/modules/supporters/activity-log/ActivityLog_Table.class.php

    [email protected]

  • Source reference

    Unverified legacy reference

    URL: https://plugins.trac.wordpress.org/browser/wp-optimizer/trunk/vendors/wps-framework/Query.class.php

    [email protected]

  • Source reference

    Unverified legacy reference

    URL: https://plugins.trac.wordpress.org/changeset/3508033

    [email protected]

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.