PT-2026-33802 · Adobe · Magento

Published

2026-04-20

·

Updated

2026-04-21

·

CVE-2026-40098

CVSS v3.1

5.4

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Magento Long Term Support (LTS) versions prior to 20.17.0
Description The shared wishlist add-to-cart endpoint authorizes access using a public sharing code but loads the target wishlist item via a separate global wishlist item id without verifying that the item belongs to the wishlist associated with that code. This allows an attacker to use a valid shared wishlist code for one wishlist and a wishlist item ID from a victim's wishlist to import the victim's item into the attacker's cart. Because the victim item's stored buyRequest is reused, private custom-option data is copied into the attacker's quote. If the product utilizes a file custom option, this can lead to cross-user file disclosure as the imported file metadata is preserved and the download endpoint does not verify ownership.
Technical details include the following:
  • API Endpoint: '/wishlist/shared/cart/'
  • Vulnerable Parameters: code and item
  • Vulnerable Function: SharedController::cartAction()
Recommendations Update to version 20.17.0. As a temporary workaround, restrict access to the '/wishlist/shared/cart/' endpoint to minimize the risk of exploitation.

Exploit

Fix

Missing Authorization

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-40098
GHSA-665X-PPC4-685W

Affected Products

Magento