Back to Guides
Guide3 December 2026

Is WooCommerce vulnerable to unauthenticated order creation and how to fix it?

Decloak is an AI-powered web security intelligence platform that scans a site's HTTP/TLS posture, JavaScript, and third-party scripts to produce a report anyone can read. This guide is part of Decloak's library of practical, source-backed security guidance.

In this guide
  1. Key takeaways
  2. What exactly is the unauthenticated order creation bug in WooCommerce?
  3. Which WooCommerce versions are affected?
  4. How can I test whether my site is vulnerable?
  5. How do I remediate the issue?
  6. Will Decloak detect this vulnerability automatically?
  7. What else should I watch for after fixing the WooCommerce bug?
  8. How does this vulnerability relate to broader WooCommerce security best practices?

Key takeaways

What exactly is the unauthenticated order creation bug in WooCommerce?

The bug allows anyone on the internet to send a POST request to the /wp-json/wc/v3/orders (or similar) endpoint and have the server create an order without any nonce, OAuth token, or basic - auth check. The server accepts arbitrary product IDs, quantities and customer details, so an attacker can generate orders that trigger payment - gateway calls or flood your store with spam.

Which WooCommerce versions are affected?

All releases before 9.4.3 are vulnerable. The table below summarizes the status:

WooCommerce versionVulnerable?
< 9.4.3Yes
≥ 9.4.3No

The fix was released on 2024 - 12 - 03 in version 9.4.3 and carries a CVSS 7.1 score (high).

How can I test whether my site is vulnerable?

  1. Manual curl test - Run the following command, replacing example.com with your domain:
curl -X POST https://example.com/wp-json/wc/v3/orders \
-H "Content-Type: application/json" \
-d '{"payment_method":"bacs","payment_method_title":"Direct Bank Transfer","set_paid":false,"billing":{},"line_items":[{"product_id":1,"quantity":1}]}'

If the response returns an order ID (e.g., { "id": 123, … }) without any authentication header, the site is vulnerable. 2. Use Decloak free scan - The free scan loads your page, captures network traffic, and reports whether the order endpoint can be called without auth. Look for a finding under the "JavaScript CVE scanning" or "Third - party domain mapping" layers that flags an unauthenticated REST call. 3. WPScan plugin - Run wpscan --url https://example.com --enumerate vp to see the same vulnerability listed.

How do I remediate the issue?

1. Upgrade WooCommerce

2. Verify the fix after upgrade

3. Apply temporary mitigations if you cannot upgrade immediately

MitigationHow to implement
Block the endpoint at the web serverAdd a rule to Nginx: location ~* /wp-json/wc/v3/orders { deny all; } or to Apache: RedirectMatch 403 ^/wp-json/wc/v3/orders
Require authentication via a WAFConfigure your WAF to require a valid Authorization header for any request to /wp-json/wc/v3/*
Disable REST API for unauthenticated usersAdd add_filter( 'woocommerce_rest_check_permissions', '__return_true' ); to a site - specific plugin only after confirming other endpoints are protected

Will Decloak detect this vulnerability automatically?

Decloak’s free scan includes core layers that capture rendered - page network behaviour. While it does not perform active probing, it records the responses of any REST calls made by the page or by loaded scripts. If a script on your site attempts to create an order without auth, Decloak will flag the insecure request. For a definitive verification, combine the passive scan with the manual curl test described above.

What else should I watch for after fixing the WooCommerce bug?

How does this vulnerability relate to broader WooCommerce security best practices?


For deeper guidance on reading Decloak reports and setting up scheduled scans, see the journal posts:

Free security scan

See what's actually exposed on your site.

Decloak's free scan runs in about 15 seconds, no account required, and covers:

  • HTTP/TLS security posture
  • JavaScript CVEs
  • Exposed Supabase/Lovable/Base44 misconfigurations
  • AI-written executive summary