Commerce Core
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
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.
.cspell-project-words.txt+1 −0commerce.routing.yml+2 −0 fixjs/commerce.inbox.js+1 −3 fixmodules/cart/src/EventSubscriber/QueryAccessSubscriber.php+6 −0 fixmodules/cart/src/Hook/CommerceCartHooks.php+44 −2 fixmodules/checkout/commerce_checkout.module+8 −0 fixmodules/checkout/src/Controller/CheckoutController.php+4 −0 fixmodules/checkout/src/Hook/CommerceCheckoutHooks.php+10 −0 fixmodules/order/commerce_order.routing.yml+1 −0 fixmodules/order/commerce_order.services.yml+5 −0 fixmodules/order/src/Entity/Order.php+5 −0 fixmodules/order/src/Entity/OrderItem.php+5 −0 fix
- Highly critical · Access bypass · SA-CONTRIB-2026-254
- Moderately critical · Information disclosure · SA-CONTRIB-2026-259
- Moderately critical · Cross site request forgery · SA-CONTRIB-2026-258
- Moderately critical · Access bypass · SA-CONTRIB-2026-257
- Moderately critical · Information disclosure · SA-CONTRIB-2026-255
- Less critical · Access bypass · SA-CONTRIB-2026-256