<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Eric Culus</title>
    <description>The latest articles on DEV Community by Eric Culus (@eric_culus).</description>
    <link>https://dev.to/eric_culus</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4257410%2F35852c72-cfcf-4dab-86c5-5adacafa2243.jpg</url>
      <title>DEV Community: Eric Culus</title>
      <link>https://dev.to/eric_culus</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eric_culus"/>
    <language>en</language>
    <item>
      <title>WooCommerce 11.3.1: the security patch that can break headless checkouts</title>
      <dc:creator>Eric Culus</dc:creator>
      <pubDate>Sat, 21 Nov 2026 13:48:11 +0000</pubDate>
      <link>https://dev.to/eric_culus/woocommerce-1131-the-security-patch-that-can-break-headless-checkouts-20pd</link>
      <guid>https://dev.to/eric_culus/woocommerce-1131-the-security-patch-that-can-break-headless-checkouts-20pd</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0yn65tkqzsxkqzf3sgeo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0yn65tkqzsxkqzf3sgeo.png" alt="WooCommerce 11.3.1 shipped on 19 November 2026 as a security release. If your storefront calls the Store API from another domain with cookies, expect CORS errors until you allowlist that origin.&lt;br&gt;
" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On Thursday 19 November 2026 WooCommerce released 11.3.1, a patch release the team labels as a security update, with a database update attached. The release notes describe it as bringing "fixes across checkout, customer accounts, store permissions, and data handling" and ask store owners to update promptly and then test cart and checkout. No CVE ids, severity scores or reports of attacks are attached to it.&lt;/p&gt;

&lt;p&gt;For most WooCommerce stores that is the whole story: update, place a test order, done. The reason it is worth a longer look here is that 11.3.1 also tightens how the Store API answers requests from other domains. That is exactly the setup a lot of AI-built shops use, and it is the kind of change that turns a working checkout into a console full of red CORS errors the morning after an automatic update.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why a patch release, and why now?
&lt;/h2&gt;

&lt;p&gt;WooCommerce explained the context on 6 November in a post titled "We went looking: what Woo has done about security since June". Reports to its HackerOne programme rose roughly ninefold over the past year as AI tools made bugs cheaper to find, and deep scans in August flagged around 700 potential issues to triage. Since then every merge into trunk and the release branches gets an automated security scan, and security fixes go out in dedicated patch releases by default: Critical and High issues in the next patch on the current version, Medium and Low in the patch after the next minor release. The same post named 11.2.2 and 11.3.1 as the releases carrying the fixes from that work.&lt;/p&gt;

&lt;p&gt;So 11.3.1 is not a reaction to an attack. It is a batch of hardening that landed on schedule. The public notes stay at summary level ("stronger checkout, order, shipping, tax, and coupon checks", "better protection for customer accounts and order information", "tighter API permissions and safer handling of product and store data"), and the WordPress.org changelog lists the individual fixes as plain "Fix" lines. One of those lines is the one that matters most to anyone with a decoupled front end: "Protect customer account data from untrusted cross-origin cart requests."&lt;/p&gt;
&lt;h2&gt;
  
  
  Does this reach your app?
&lt;/h2&gt;

&lt;p&gt;It does if your storefront is a separate front end, the typical Lovable, Bolt, v0 or Next.js shop that renders products itself and talks to WooCommerce over the Store API (&lt;code&gt;/wp-json/wc/store/v1/...&lt;/code&gt;). The question is how those requests are authenticated.&lt;/p&gt;

&lt;p&gt;If the front end runs on a different origin from WordPress (say &lt;code&gt;shop.example.com&lt;/code&gt; in front of &lt;code&gt;cms.example.com&lt;/code&gt;, or a &lt;code&gt;*.vercel.app&lt;/code&gt; preview in front of your live WordPress) and it sends requests with &lt;code&gt;credentials: 'include'&lt;/code&gt; so the WordPress login cookie travels along, 11.3.1 now only honours that when the calling origin is one WordPress allows. Anything else is refused, and in the browser that surfaces as a CORS error on cart, checkout or account calls. The release notes say so directly: affected requests "may fail with browser CORS errors after updating."&lt;/p&gt;

&lt;p&gt;It does not reach you if your front end and WordPress share an origin, if you only make server-side calls from your own backend, or if your cart works with the Store API's cart token and never sends cookies. WooCommerce notes that cart-token requests without credentials keep working.&lt;/p&gt;

&lt;p&gt;There is a common AI-generated pattern worth checking for specifically: a &lt;code&gt;fetch&lt;/code&gt; wrapper with &lt;code&gt;credentials: 'include'&lt;/code&gt; added "to make the cart persist", copied onto every Store API call. It often works by accident on a same-origin setup and then breaks the first time the front end moves to its own domain or a preview URL. After 11.3.1 it breaks on any origin you have not allowlisted.&lt;/p&gt;
&lt;h2&gt;
  
  
  What to check and change today
&lt;/h2&gt;

&lt;p&gt;Start by finding out what you are running. In WordPress go to Plugins and read the WooCommerce version, or run &lt;code&gt;wp plugin get woocommerce --field=version&lt;/code&gt; if you have WP-CLI. If it already says &lt;code&gt;11.3.1&lt;/code&gt;, the change is live and you should test now. If it is older, update on a staging copy first.&lt;/p&gt;

&lt;p&gt;Then go through this list:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Search the front end for Store API calls: &lt;code&gt;grep -rn "wc/store" src app lib&lt;/code&gt;. For each one, note whether it sets &lt;code&gt;credentials: 'include'&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If a call needs the logged-in customer (account pages, saved addresses, order history), keep the credentials and allowlist your storefront's origin in WordPress.&lt;/li&gt;
&lt;li&gt;If a call only needs the cart, consider switching it to the cart token and &lt;code&gt;credentials: 'omit'&lt;/code&gt;, which WooCommerce documents as unaffected.&lt;/li&gt;
&lt;li&gt;Open the storefront in a private window, add a product, go through checkout to the payment step, then log in and load the account page. Watch the browser console and network tab for CORS failures on &lt;code&gt;/wp-json/wc/store/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Repeat on your preview domain if you use one, since that is a different origin from production.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The allowlist uses the standard WordPress filter &lt;code&gt;allowed_http_origins&lt;/code&gt;, in a small must-use plugin or your theme's &lt;code&gt;functions.php&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'allowed_http_origins'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$origins&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$origins&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'https://shop.example.com'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$origins&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;List exact origins, scheme included. Resist the temptation to add a wildcard or to reflect whatever Origin header arrives: that recreates the hole the patch closes, because the point of the change is that a random site should not be able to make a logged-in customer's browser read their account data.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two smaller changes worth a test
&lt;/h2&gt;

&lt;p&gt;The legacy wc-admin options REST endpoint now requires the &lt;code&gt;manage_woocommerce&lt;/code&gt; capability. If you created a custom role for staff who only handle orders, or an integration user with a narrow role, and something in your admin tooling reads store options through that endpoint, it will start returning permission errors. The fix is either to give that role the capability deliberately or to stop depending on the legacy endpoint; do not hand out &lt;code&gt;manage_woocommerce&lt;/code&gt; just to make an error go away without knowing what reads it.&lt;/p&gt;

&lt;p&gt;Version 11.3.1 also adds a template, &lt;code&gt;myaccount/form-confirm-email.php&lt;/code&gt;, for the My Account email-confirmation flow. Themes that override My Account templates should check WooCommerce's template status screen (WooCommerce, Status, Templates) for outdated overrides, and you should walk through the account pages once in a browser. Headless front ends that rebuild My Account themselves will not render this template, so check whether the confirmation flow needs an equivalent screen on your side.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should you hold the update back?
&lt;/h2&gt;

&lt;p&gt;No. Holding a security release to protect a fragile integration is the wrong trade, and the fix for the integration is a few lines. The sensible order is: copy the site to staging, update there, run the checks above, add the origin filter if you need it, then update production and repeat the test order. If you are on managed WordPress hosting that applies plugin updates for you, assume 11.3.1 is either already live or will be soon, and run the browser test today rather than waiting for a customer to tell you checkout stopped working.&lt;/p&gt;

&lt;p&gt;If you find that your store's checkout logic is spread across generated code you no longer fully understand, the &lt;a href="https://rescuemysites.com/fix/logins-drop-or-leak?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=daily-news" rel="noopener noreferrer"&gt;logins and sessions guide&lt;/a&gt; covers the same cookie and origin questions from the other side.&lt;/p&gt;




&lt;p&gt;Originally published on &lt;a href="https://rescuemysites.com/blog/woocommerce-11-3-1-security-release-headless-cors?utm_source=devto&amp;amp;utm_medium=social&amp;amp;utm_campaign=daily-news" rel="noopener noreferrer"&gt;RescueMySites&lt;/a&gt;. Sources: &lt;a href="https://developer.woocommerce.com/2026/11/19/woocommerce-11-3-1/" rel="noopener noreferrer"&gt;WooCommerce 11.3.1 release notes&lt;/a&gt;, &lt;a href="https://developer.woocommerce.com/2026/11/06/woo-latest-security/" rel="noopener noreferrer"&gt;WooCommerce security post of 6 November&lt;/a&gt;, &lt;a href="https://wordpress.org/plugins/woocommerce/" rel="noopener noreferrer"&gt;WordPress.org changelog&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>woocommerce</category>
      <category>headless</category>
      <category>webdev</category>
      <category>wordpress</category>
    </item>
  </channel>
</rss>
