Skip to content
CVE PROGRAM SOURCE RECORD7.2 High

CVE-2026-87964

Product Feed Manager for WooCommerce <= 8.0.26 - Authenticated (Shop Manager+) PHP Code Injection via eval() via 'feedConfigCustom2' Parameter

Read JSON ↗CVE.org ↗

Description

The Product Feed Manager for WooCommerce – CTX Feed – Support 220+ Shopping, AI & Social Channels plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 8.0.26. This is due to insufficient sanitization of the `feedConfigCustom2` parameter — only `wp_unslash()` is applied before the value is stored verbatim via `update_option()`, and during feed generation the `Custom2Template::evaluate_return()` method passes the stored `{(return ...)}` template expressions directly to PHP's `eval()` function without any code-level sanitization. This makes it possible for authenticated attackers, with Shop Manager-level access and above, to inject and execute arbitrary PHP code on the server, escalating their privileges beyond what the role normally permits to full remote code execution and site takeover. The `ctxfeed_custom2_eval_enabled` option defaults to `true`, meaning no additional administrator configuration is required for this attack path to be exploitable out of the box.

Remediation guide

Fix the default evaluation path for CVE-2026-87964 in CTX Feed

Guide updated .

Disable optional Custom2 PHP-expression evaluation by default in the exact CTX Feed 8.0.26 source below. Remove site code that explicitly re-enables ctxfeed_custom2_eval_enabled before relying on this default.

Applicability

Item Tested scope
Source Product Feed Manager for WooCommerce / CTX Feed 8.0.26; exact official ZIP SHA-256 4b1dd1b50d1184a4981ead542b6efab8d7fdd474ec79b4dcc1f711075fa5797d.
Changed paths V8/Template/Custom2Template.php
Prerequisites Linux, Git, curl, unzip, sha256sum and PHP 8.5 CLI. This is a scoped change to the V8 Custom2 evaluation gate; compatibility with other versions must be reconciled.

This patch was created and tested by Casco.

Download and apply

Use a new disposable directory. These commands verify downloads before applying or executing them. Do not apply the patch blindly to another revision.

File SHA-256
CVE-2026-87964-disable-custom2-eval-by-default.patch 92239559dceb1cb3cc9ca7c1b25ae63dc55e6b497aaf31605c33fce5cc6606f7
test_eval_gate.php 936df95d2d0a9287377a91f7e1194c165abb53d65d31090c8709d2b84ae4ee20
set -eu
mkdir cve-2026-87964-verification
cd cve-2026-87964-verification
curl -fL 'https://casco.com/cve/artifacts/CVE-2026-87964/92239559dceb1cb3cc9ca7c1b25ae63dc55e6b497aaf31605c33fce5cc6606f7/CVE-2026-87964-disable-custom2-eval-by-default.patch' -o 'CVE-2026-87964-disable-custom2-eval-by-default.patch'
printf '%s  %s\n' '92239559dceb1cb3cc9ca7c1b25ae63dc55e6b497aaf31605c33fce5cc6606f7' 'CVE-2026-87964-disable-custom2-eval-by-default.patch' | sha256sum -c -
curl -fL 'https://casco.com/cve/artifacts/CVE-2026-87964/936df95d2d0a9287377a91f7e1194c165abb53d65d31090c8709d2b84ae4ee20/test_eval_gate.php.txt' -o 'test_eval_gate.php'
printf '%s  %s\n' '936df95d2d0a9287377a91f7e1194c165abb53d65d31090c8709d2b84ae4ee20' 'test_eval_gate.php' | sha256sum -c -
curl -fL 'https://downloads.wordpress.org/plugin/webappick-product-feed-for-woocommerce.8.0.26.zip' -o ctx-feed.zip
printf '%s  %s\n' '4b1dd1b50d1184a4981ead542b6efab8d7fdd474ec79b4dcc1f711075fa5797d' ctx-feed.zip | sha256sum -c -
unzip -q ctx-feed.zip
git apply --check -p0 CVE-2026-87964-disable-custom2-eval-by-default.patch
set +e
php test_eval_gate.php > baseline.log
baseline_status=$?
set -e
test "$baseline_status" -eq 1
grep -F '"passed":3,"failed":3,"total":6' baseline.log
git apply -p0 CVE-2026-87964-disable-custom2-eval-by-default.patch
php test_eval_gate.php > patched.log
grep -F '"passed":6,"failed":0,"total":6' patched.log

Validation

Fresh public-download verification applied the exact patch and ran the actual Custom2Template evaluate_return method under PHP 8.5. The original passed 3/6 cases and the patch passed 6/6. Fixtures use inert return expressions and cover the default, explicit opt-in, explicit opt-out and empty input. WordPress/plugin dependencies are stubbed.

Deployment and rollback

Existing Custom2 expressions will produce empty output when evaluation is disabled; verify generated product-feed content in staging. Explicit administrator opt-in still enables evaluation and is not removed by this patch. Full WordPress/WooCommerce, other template engines and production were not tested. This guide does not identify a vendor-supported fixed release. Keep the previous source, built package and backups. To reverse this exact patch after checking applicability:

git apply -R -p0 CVE-2026-87964-disable-custom2-eval-by-default.patch

A rollback restores the earlier code; verify the staging result before any production rollout.

Evidence

Primary advisory or CVE record. Structured CVE record. Validation was repeated from anonymous public source/artifact downloads on November 23, 2026; The scoped results above do not establish full application or production acceptance.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

wahid0003 Product Feed Manager for WooCommerce – CTX Feed – Support 220+ Shopping, AI & Social Channels

Default version status: unaffected

  • 0 to ≤ 8.0.26affected

References