CVE-2026-107711

FlexStock <= 3.17.2 - Authenticated (Subscriber+) Stored Cross-Site Scripting via 'post_content' Parameter via REST update endpoint

Published Oct 31, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability allows an authenticated attacker with subscriber-level access or higher to store malicious JavaScript in a product’s post_content via the FlexStock REST update endpoint. The stored script is rendered without proper sanitization or output escaping, meaning it will execute whenever a page containing the injected content is viewed. This is a classic example of stored XSS, classified as CWE‑79.

Affected Systems

The issue affects the FlexStock – Product Stock Sync with Google Sheets for WooCommerce WordPress plugin, in all releases up to version 3.17.2. Any WordPress site using these versions of the plugin is susceptible.

Risk and Exploitability

The CVSS score of 6.4 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an authenticated user with at least subscriber privileges; the attacker leverages the REST endpoint’s permission callback that merely checks a bearer token, as well as the token leakage through an admin page. Consequently, any subscriber can add malicious payloads that will be executed on subsequent page loads.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest FlexStock release that removes the stored XSS flaw.
  • If an upgrade cannot be performed immediately, modify the REST endpoint’s permission_callback to require an administrative capability such as current_user_can('manage_options').
  • Remove or disable the admin_enqueue_scripts callback that exposes the REST bearer token, or apply a custom patch to stop leaking the token into page source.

Generated by OpenCVE AI on October 31, 2026 at 10:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title FlexStock <= 3.17.2 - Authenticated (Subscriber+) Stored Cross-Site Scripting via 'post_content' Parameter via REST update endpoint
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}

Subscriptions

No data.

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Nov 1, 2026, 5:34 PM
Reserved
Oct 8, 2026, 5:17 PM
Status
Deferred
Published
Oct 31, 2026, 10:16 AM
Modified
Nov 2, 2026, 4:19 PM