CVE-2026-122070: 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
Who is affected by this issue?
Only anonymous visitors' carts are affected. Authenticated customers' carts are not affected.
What can an attacker do?
An anonymous visitor can view product names and prices in other anonymous visitors' carts and replace cart items with one of the alternatives listed for those items.
Does exploitation require the attacker to log in?
No. The issue specifically affects access controls for visitors who are not logged in.