- Package
- drupal/commerce_product_alternative
- Fixed in
- 1.0.1
- Published
- Wed 4 Nov 2026, 17:33 LisbonUpdated Wed 11 Nov 2026, 00:45 Lisbon
In plain words
An anonymous visitor can view product names and prices in other anonymous visitors' carts and replace items with their listed alternatives. The module does not check that the cart belongs to the current visitor. Authenticated customers' carts are not affected.
How serious is it?
The source record has no severity score, so the rating is yours to make. Read the description for two things: what an attacker needs (an account, a particular setting, a user who clicks a link) and what they get. Drupal security advisories carry their own risk score on drupal.org, which is not in the OSV record. When the advisory gives no details at all, assume the worst until you know more: an unfixed issue with an unknown impact is not a low one.
Am I affected?
Look for drupal/commerce_product_alternative and its version in composer.lock, then check whether your shop uses carts for anonymous visitors. The advisory gives no affected version range, but lists 1.0.1 as fixed. Only anonymous visitors' carts are affected.
Did you install drupal/commerce_product_alternative, or did a dependency?
Composer says why a package is in your project:
composer why drupal/commerce_product_alternative
If the output names your own project, you required drupal/commerce_product_alternative directly and the update is yours to make. If it names another package, drupal/commerce_product_alternative came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:
composer why-not drupal/commerce_product_alternative 1.0.1
Every line it prints is a constraint that blocks 1.0.1. Update the package it names, or raise your own constraint, and run it again until it prints nothing.
What to do
Check which version you have, then update to a fixed release for your branch (1.0.1):
composer show drupal/commerce_product_alternative | grep versions
composer update drupal/commerce_product_alternative
If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.
If you cannot update yet
The vulnerability is mitigated by affecting only anonymous visitors' carts; authenticated customers' carts are not affected.
Check the whole project at once
Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:
composer audit --locked
--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.
Under the Cyber Resilience Act
No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.
Either way, if drupal/commerce_product_alternative ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated drupal/commerce_product_alternative, and why, is the evidence you will want later.
What goes in each Article 14 report · Does the CRA apply to your product?
drupal/commerce_product_alternative's record
This is the only advisory for drupal/commerce_product_alternative since the digest started following Composer packages in September 2026. One advisory says little about a package's quality; what matters is how fast the fix came, and here it is out.
The advisory's description
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.
The advisory
- OSV.dev: DRUPAL-CONTRIB-2026-301
- The week's digest, with the other advisories from 2 Nov 2026
- All advisories for drupal/commerce_product_alternative