CVE DatabaseCVE-2026-107711
한국어 권고문 →
CVE-2026-1077116.4/MEDIUMCWE-79

WordPress FlexStock Plugin Stored XSS and Privilege Bypass Vulnerability (CVE-2026-107711)

⚡ Jump to Patch
Affected Vendors
flexstock, wordpress
Affected Components
flexstock - product stock sync with google sheets for woocommerce
Published Date
2026-10-31
CVSS v3.1
6.4
MEDIUM
EPSS (30d)
0.3%
FIRST.org
CISA KEV
Not Listed

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

All versions up to, and including, 3.17.2 of the FlexStock – Product Stock Sync with Google Sheets for WooCommerce plugin for WordPress

Impact

Authenticated attackers with subscriber-level access can leak REST bearer tokens, bypass authorization, and inject malicious scripts to hijack administrator sessions

Mitigation

Immediately upgrade the FlexStock plugin to the latest secure version (3.17.3 or higher) and restrict unauthorized REST API access

Affected Products & Version Scope

All versions of FlexStock – Product Stock Sync with Google Sheets for WooCommerce up to and including 3.17.2

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The primary remediation is to upgrade the FlexStock plugin to version 3.17.3 or later. You can perform this update immediately using WP-CLI.

bash
# Update and activate the FlexStock plugin using WP-CLI
wp plugin update stock-sync-with-google-sheet-for-woocommerce --activate
wp plugin status stock-sync-with-google-sheet-for-woocommerce

2. Temporary Workaround & Hardening Configuration

If an immediate update is not feasible, you can restrict REST API access for non-administrative users by adding a filter to your theme's functions.php file.

php
// Restrict REST API access to administrators only within functions.php
add_filter('rest_authentication_errors', function($result) {
    if (!empty($result)) {
        return $result;
    }
    if (!current_user_can('manage_options')) {
        return new WP_Error('rest_forbidden', 'Access Denied: Insufficient Permissions.', array('status' => 403));
    }
    return $result;
});

3. Log Audit & IoC Verification Commands

Run the following command on your web server to inspect access logs for suspicious POST requests targeting the FlexStock plugin or containing the post_content parameter.

bash
# Search web server access logs for suspicious FlexStock API interactions
grep -Ei 'stock-sync|post_content' /var/log/nginx/access.log /var/log/apache2/access.log | grep -E 'POST|PUT'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Immediately upgrade the FlexStock plugin to version 3.17.3 or higher and enforce strict REST API access controls.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2026-107711) is a multi-stage security flaw arising from insufficient input sanitization, output escaping, and broken access control within the FlexStock WordPress plugin. First, the plugin's admin_enqueue_scripts callback exposes the REST bearer token in the Dashboard page source via wp_localize_script() without performing any capability checks. Second, the plugin's REST endpoint permission_callback validates only the presence and validity of this bearer token rather than executing a proper current_user_can() capability check. Third, the products.post_content parameter lacks proper sanitization and output escaping, allowing authenticated users to store arbitrary web scripts.

2. Exploitation Mechanics & Attack Scenario

An attacker with low-privileged Subscriber-level access can exploit this vulnerability through the following steps:

  • The attacker logs into the WordPress dashboard and extracts the exposed REST bearer token from the page source.
  • Using this bearer token, the attacker bypasses the authorization check of the plugin's custom REST API endpoints.
  • The attacker sends a crafted REST API request containing malicious JavaScript payloads inside the products.post_content parameter.
  • When an administrator or any user visits the page where the injected content is rendered, the script executes in their browser context, potentially leading to session hijacking or unauthorized administrative actions.

3. Infrastructure & Business Impact

The combination of token exposure, authorization bypass, and Stored XSS poses a severe threat to the affected WordPress site. Successful exploitation allows attackers to escalate privileges to administrator level, compromise WooCommerce customer data, alter transaction details, or inject malicious redirects. At the infrastructure level, this can serve as an entry point for deploying web shells, leading to full server compromise and significant reputational damage.

Official Vendor Advisories & References

NVD Original English Description

The FlexStock – Product Stock Sync with Google Sheets for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'products[].post_content' parameter in all versions up to, and including, 3.17.2 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This is exploitable by any Subscriber-level user because the plugin's admin_enqueue_scripts callback exposes the REST bearer token in the Dashboard page source via wp_localize_script() without a capability check, and the REST endpoint's permission_callback validates only that bearer token rather than performing a current_user_can() capability check.

Frequently Asked SecOps Questions (CVE-2026-107711)

FAQ

Q1. How critical is CVE-2026-107711 and is it actively exploited in the wild?

CVE-2026-107711 is rated CVSS 6.4 (MEDIUM) with a 30-day EPSS exploitation probability of 0.3%. Organizations running affected versions should prioritize patching based on network exposure.

Q2. Which vendors and products are affected by CVE-2026-107711?

Primary impacted vendors include flexstock, wordpress across flexstock - product stock sync with google sheets for woocommerce. Scope summary: All versions of FlexStock – Product Stock Sync with Google Sheets for WooCommerce up to and including 3.17.2

Q3. What temporary mitigations or workarounds exist for CVE-2026-107711 before patching?

[Mitigation] Immediately upgrade the FlexStock plugin to the latest secure version (3.17.3 or higher) and restrict unauthorized REST API access Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2026-107711

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (flexstock)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2026-107711 WordPress FlexStock Plugin Stored XSS and Privilege Bypass Vulnerability (CVE-2026-107711) (CVSS 6.4) - Patch & Workaround | CVE Pulse