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
- Key takeaways
- What exactly is the unauthenticated order creation bug in WooCommerce?
- Which WooCommerce versions are affected?
- How can I test whether my site is vulnerable?
- How do I remediate the issue?
- Will Decloak detect this vulnerability automatically?
- What else should I watch for after fixing the WooCommerce bug?
- How does this vulnerability relate to broader WooCommerce security best practices?
Key takeaways
- Versions prior to 9.4.3 let unauthenticated users POST to the WooCommerce order REST endpoint.
- The flaw can be exploited to create fraudulent orders and abuse payment - gateway integrations.
- Update to 9.4.3 or later, then verify the fix with a Decloak free scan that checks the REST endpoint behavior.
- If you cannot upgrade immediately, block the vulnerable endpoint at the web server or WAF level.
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 version | Vulnerable? |
|---|---|
| < 9.4.3 | Yes |
| ≥ 9.4.3 | No |
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?
- Manual curl test - Run the following command, replacing
example.comwith 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
- Log in to your WordPress admin.
- Navigate to Plugins → Installed Plugins.
- If an update to 9.4.3 or later is available, click Update Now.
- Verify the version number under the plugin description.
2. Verify the fix after upgrade
- Repeat the manual curl test; the server should now return a 401/403 error.
- Run a new Decloak free scan. The report should no longer show the unauthenticated order creation finding.
3. Apply temporary mitigations if you cannot upgrade immediately
| Mitigation | How to implement |
|---|---|
| Block the endpoint at the web server | Add 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 WAF | Configure your WAF to require a valid Authorization header for any request to /wp-json/wc/v3/* |
| Disable REST API for unauthenticated users | Add 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?
- Payment - gateway abuse - Review recent orders for unexpected high - value transactions.
- Log monitoring - Enable logging for
/wp-json/wc/v3/ordersrequests and alert on 200 responses from unknown IPs. - Regular scans - Schedule weekly Decloak scans (see the "Set It Once" guide) to catch regressions.
How does this vulnerability relate to broader WooCommerce security best practices?
- Always keep plugins up to date; the majority of high - severity WordPress bugs are fixed in patch releases.
- Limit REST API exposure: use the
woocommerce_rest_check_permissionsfilter to enforce authentication for all endpoints. - Run periodic external scans (Decloak free or paid) to verify that public endpoints behave as expected.
For deeper guidance on reading Decloak reports and setting up scheduled scans, see the journal posts:
- What Your Decloak Grade Means, and What It Doesn't
- Set It Once: Scheduled Scans, Email Alerts, Slack and Webhooks in Decloak
Related guides
Why does WordPress have so many vulnerabilities?
WordPress’s huge market share and open plugin ecosystem create a large attack surface filled with common coding mistakes, which drives a high number of reported vulnerabilities.
Is WordPress vulnerable?
Yes - WordPress sites face a high volume of plugin - related bugs, many unpatched and actively exploited, so regular scanning and hardening are essential.
How to check a WordPress site for vulnerabilities?
Use Decloak’s free web scan and a WordPress security plugin to find outdated core files, vulnerable plugins, and misconfigurations in just minutes.