DRUPAL-CONTRIB-2026-301: Composer/drupal/commerce_product_alternative vulnerability
This module lets customers replace an item in their cart with one of the alternative product variations listed for it.
The module does not check that a cart belongs to the current visitor when the visitor is not logged in. An anonymous visitor can view items in other anonymous visitors' carts, including product names and prices, and replace those items with one of their listed alternatives.
The vulnerability is mitigated by the fact that only carts of anonymous visitors are affected; carts of authenticated customers are not.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/commerce_product_alternativeto a version that resolves this vulnerability.Fixed in 1.0.1
Event History
Frequently Asked Questions
Which customers and data are exposed?
Only anonymous visitors' carts are affected. Another anonymous visitor may view the product names and prices of items in those carts; authenticated customers' carts are not affected.
What can an attacker do with access to another anonymous cart?
An anonymous visitor can replace items in another anonymous visitor's cart with one of the alternative product variations listed for that item.