Drupal security updates, in plain English · Module

Commerce Core

42,002 sites report using it · on drupal.org · 2 security updates explained here

This module enables a website to sell goods and services to customers through a shopping basket and checkout form.

Below is every security update for Commerce Core that this site has covered, newest first. Each one says who could exploit it, whether it applies to your site, how urgent it is, and what to tell your developer. If your site uses this module and you are not sure which version, that is the first question to ask whoever looks after it.

Commerce Core

Highly critical · 42,002 sites report using it · 6 security fixes · Week of 28 October 2026

6 security fixes in one update. Commerce Core fixed 6 separate security bugs at once: 3 access bypass, 2 information disclosure, 1 cross site request forgery. One update covers all of them. The most serious, SA-CONTRIB-2026-254, is explained here and the full list is at the end of the card.

Anyone could bypass security checks to view and change shop data. They could alter shop records and see private information.

  • Who could do thisAnyone visiting the site. No login needed.
  • Does it apply to youAny site using this module.
  • Has it been used in attacksYes. It has been used in real attacks.
  • How urgentDrupal rates this highly critical. Cyber Essentials expects a fix within 14 days. Do it this week.

Tell your developerUpdate Commerce Core to 3.3.13 or 8.x-2.41, whichever branch you are on.

For developers: what the fix changed

This release carries 6 security fixes. The summary below is for SA-CONTRIB-2026-254, the most serious of them.

The fix introduces a `restricted_fields` property to multiple entity types (such as orders, order items, payment methods, and promotions) and enforces access control on these fields in their respective access control handlers to prevent unauthorised modifications. It also restricts access to order administration routes by adding an `OrderAdminRouteSubscriber` and adds CSRF token protection to inbox message routes.

Also in this release The release also adds a `ProductVariationsConstraint` to ensure products only reference their own variations and updates test coverage.

3.3.12 to 3.3.13 1 commit, 84 files including 42 tests.

  • .cspell-project-words.txt +1 −0
  • commerce.routing.yml +2 −0 fix
  • js/commerce.inbox.js +1 −3 fix
  • modules/cart/src/EventSubscriber/QueryAccessSubscriber.php +6 −0 fix
  • modules/cart/src/Hook/CommerceCartHooks.php +44 −2 fix
  • modules/checkout/commerce_checkout.module +8 −0 fix
  • modules/checkout/src/Controller/CheckoutController.php +4 −0 fix
  • modules/checkout/src/Hook/CommerceCheckoutHooks.php +10 −0 fix
  • modules/order/commerce_order.routing.yml +1 −0 fix
  • modules/order/commerce_order.services.yml +5 −0 fix
  • modules/order/src/Entity/Order.php +5 −0 fix
  • modules/order/src/Entity/OrderItem.php +5 −0 fix

Full diff, 3.3.12 to 3.3.13 · Full diff, 8.x-2.40 to 8.x-2.41

The comparison is against the release immediately before the fix. If your site is on an older release, more will have changed.

All 6 security bugs this update fixes, worst first. Each link is the drupal.org notice for that one.

Commerce Core

Moderately critical · 36,470 sites report using it · SA-CONTRIB-2026-041 · on drupal.org · Week of 3 June 2026

A visitor could place malicious code into the comments section of an order receipt email. They could use this to view private information or alter content when the email is read. They could not take full control of the website.

  • Who could do thisAnyone visiting the site. No login needed.
  • Does it apply to youThis applies if the website uses the checkout feature and has the customer comments section turned on.
  • Has it been used in attacksNo sign of it.
  • How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.

Tell your developerUpdate Commerce Core to 3.3.6.

For developers: what the fix changed

The fix removes the raw filter from the customer comments output in the commerce order receipt Twig template and replaces it with the nl2br filter to ensure the output is properly escaped.

3.3.5 to 3.3.6 1 commit, 1 file.

  • modules/order/templates/commerce-order-receipt.html.twig +1 −1 fix

Full diff, 3.3.5 to 3.3.6

The comparison is against the release immediately before the fix. If your site is on an older release, more will have changed.

Not sure what your site is running?

Send me your Drupal site's address.

I'll tell you what I can see from outside, what the Drupal 10 end of life on 9 December means for it, and what it would cost to have me keep it patched. There's no charge for that and no obligation. peter@peterbrady.co.uk


Get in touch

Tell me who you are, what your organisation does, and what you need. That might be a Drupal site that needs looking after, an upgrade to get done before December, or an agency that needs Drupal cover.

If I can help, I'll say so and suggest a call. If I can't, I'll tell you straight away rather than waste your time.

peter@peterbrady.co.uk

For context: I work mainly with UK membership bodies, charities and research organisations, and with the agencies that look after their websites. Not recruiters.

Or start smaller and connect with me on LinkedIn. That's where I post what I find digging around in charity and grants data, and where the free tools turn up first.