Drupal security updates, in plain English · Module

Commerce License

3,318 sites report using it · on drupal.org · 2 security updates explained here

This module lets a website sell access to resources like roles through an online shop.

Below is every security update for Commerce License 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 License

Moderately critical · 3,318 sites report using it · 2 security fixes · Week of 11 November 2026

2 security fixes in one update. Commerce License fixed 2 separate security bugs at once: 2 access bypass. One update covers all of them. The most serious, SA-CONTRIB-2026-323, is explained here and the full list is at the end of the card.

The module does not properly check the license linked to an order item. Anyone without logging in could take over a license belonging to another user. They could access hidden data and alter information on the site.

  • Who could do thisAnyone visiting the site. No login needed.
  • Does it apply to youA site is affected if a data feed is set up to allow writes to order items.
  • 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 License to 3.1.2.

For developers: what the fix changed

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

The fix restricts access to the `license` field on order items and subscriptions in `commerce_license.module` and validates that the referenced license belongs to the order customer in `OrderSubscriber::getOrderItemLicense()`.

Also in this release The release also fixes an issue with fractional quantities in `LicenseOrderProcessorMultiples.php`, updates the `commerce` dependency version, and modifies access checks in `LicenseStorage.php`.

3.1.1 to 3.1.2 1 commit, 8 files including 2 tests.

  • commerce_license.module +35 −0 fix
  • composer.json +1 −1
  • src/Entity/License.php +1 −0
  • src/EventSubscriber/OrderSubscriber.php +36 −4 fix
  • src/LicenseOrderProcessorMultiples.php +7 −2
  • src/LicenseStorage.php +1 −1

Full diff, 3.1.1 to 3.1.2

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

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

Commerce License

Moderately critical · 3,330 sites report using it · SA-CONTRIB-2026-260 · on drupal.org · Week of 28 October 2026

An ordinary account on the site could change the access rights granted by their purchase to give themselves administrator privileges. They could also see data they should not have access to.

  • Who could do thisOnly someone with a login on your site.
  • Does it apply to youAny site using this module where a user owns a purchase and has the access right to update it.
  • 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 License to 3.1.1.

For developers: what the fix changed

The fix implements access control at the field level by introducing LicenseAccessControlHandler and defining restricted_fields in the License entity annotation to prevent users from modifying critical fields on their licences. It also adds LicenseAdminRouteSubscriber to restrict admin routes and updates LicensePermissionProvider to restrict create and update permissions.

3.1.0 to 3.1.1 1 commit, 11 files including 6 tests.

  • commerce_license.services.yml +5 −0 fix
  • src/Entity/License.php +6 −1 fix
  • src/EventSubscriber/LicenseAdminRouteSubscriber.php +48 −0 fix
  • src/LicenseAccessControlHandler.php +46 −0 fix
  • src/LicensePermissionProvider.php +4 −0 fix

Full diff, 3.1.0 to 3.1.1

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.