CVE-2026-128043 in magento-lts
Summary
by MITRE • 11/13/2026
OpenMage magento-lts before 20.19.0 and 21.0.0-beta1 before 21.0.0-beta3 contains a cross-site request forgery vulnerability in PayPal cancel and decline return handlers that trust only the checkout session without verifying the request came from PayPal. Attackers can lure a shopper into a cross-site GET to paypal/standard/cancel to cancel their recent uninvoiced order, void pending authorizations, and restore items to the cart.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/13/2026
The vulnerability identified in OpenMage versions prior to 20.19.0 and Magento LTS versions before 21.0.0-beta3 represents a critical failure in request validation within the PayPal payment integration module. Specifically, the cross-site request forgery flaw resides in the handlers for PayPal cancel and decline return actions. These endpoints are designed to process user interactions following an interrupted or rejected transaction on the external payment gateway's platform. The core technical deficiency lies in the server-side logic which relies exclusively on the presence of a valid checkout session identifier to authenticate the legitimacy of incoming requests. It fails to implement any form of cryptographic verification, such as signature validation or token comparison, against data provided by PayPal itself. This architectural oversight means that the application trusts the state stored locally within the user's browser session without confirming that the request actually originated from the authorized payment processor after a genuine transaction event.
From an operational perspective, this vulnerability allows attackers to exploit the trust relationship between the e-commerce platform and the end-user's active browsing session. By crafting a malicious URL pointing to paypal/standard/cancel or similar decline endpoints, an attacker can lure a victim who is currently logged into their OpenMage or Magento store account to visit that link. Because the server validates only the existence of the checkout session cookie rather than verifying the request source via PayPal's return parameters, the application processes the cancel action as if it were a legitimate user-initiated event triggered by PayPal after an actual transaction attempt. This lack of origin verification effectively bypasses standard anti-CSRF protections that might otherwise be in place for other parts of the administration or checkout flow, relying instead on the assumption that only PayPal can trigger these specific return handlers correctly.
The impact of this vulnerability is significant for both merchants and shoppers involved in transactions using PayPal as a payment method. When an attacker successfully exploits this flaw, they can force the cancellation of recent uninvoiced orders without any authorization from the customer or merchant. This action not only disrupts business operations by invalidating pending sales but also voids any pending authorizations held on the shopper's credit card or bank account, potentially causing financial confusion and requiring manual intervention to resolve. Furthermore, the exploit restores items back into the shopping cart, which can lead to inventory discrepancies if stock levels are managed in real-time based on order status changes. For the end-user, this results in a degraded experience where their intended purchases are unexpectedly cancelled, leading to potential loss of trust in the platform's reliability and security posture.
This vulnerability is classified under CWE-352, which denotes Cross-Site Request Forgery (CSRF), specifically highlighting the failure to verify that state-changing requests originate from the legitimate service provider rather than just an authenticated user session. In terms of offensive cybersecurity frameworks, this aligns with MITRE ATT&CK technique T1076, where attackers use remote access tools or web-based methods to perform actions on behalf of a victim. The exploitation vector is primarily social engineering combined with technical execution, requiring the attacker to trick a logged-in user into accessing a malicious link that triggers the vulnerable endpoint. To mitigate this risk, developers must implement robust verification mechanisms for all return handlers from external payment gateways. This includes validating PayPal-specific parameters such as transaction IDs and signatures against data received directly from PayPal's API during the initial IPN or PDT exchange, ensuring that the cancel or decline action is genuinely associated with a prior authorized interaction rather than merely an active session cookie.