Commerce License
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
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`.
commerce_license.module+35 −0 fixcomposer.json+1 −1src/Entity/License.php+1 −0src/EventSubscriber/OrderSubscriber.php+36 −4 fixsrc/LicenseOrderProcessorMultiples.php+7 −2src/LicenseStorage.php+1 −1
- Moderately critical · Access bypass · SA-CONTRIB-2026-323
- Less critical · Access bypass · SA-CONTRIB-2026-324