Skip to main content

Magento Lts CVE-2026-40098

| EUVDEUVD-2026-23903 MEDIUM
Missing Authorization (CWE-862)
2026-04-20 GitHub_M GHSA-665x-ppc4-685w
5.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Register attacker account
  2. Delivery
    Create wishlist and generate sharing code
  3. Exploit
    Enumerate or discover victim's wishlist_item_id
  4. Install
    Send add-to-cart request with attacker's sharing code and victim's item_id
  5. C2
    Endpoint validates sharing code but skips item ownership check
  6. Execute
    Import victim item with buyRequest into attacker's cart
  7. Impact
    Access victim's custom option data and file metadata
  8. Step 8
    Download victim's uploaded file

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the following specific conditions: (1) the attacker must be an authenticated Magento LTS user capable of creating a wishlist and generating a sharing code, (2) the shared wishlist feature must be enabled (default in Magento LTS), (3) a valid sharing_code for the attacker's own wishlist (or any wishlist they can obtain a code for) must be used, (4) the target wishlist_item_id must be guessable or discoverable (numeric sequential IDs are typical), and (5) for file disclosure escalation, the victim's product must have a custom option of type file upload and the download endpoint must not verify file ownership. The vulnerability is limited by the requirement for authenticated access (PR:L in CVSS), preventing unauthenticated enumeration attacks, though this is a relatively low barrier in public e-commerce deployments that permit free registration. Non-default configurations such as disabling the Wishlist module entirely or restricting wishlist sharing to authenticated users only would prevent exploitation.

Impact

This vulnerability presents moderate real-world risk with clear limiting factors. The CVSS 5.3 score reflects network accessibility (AV:N) and low attack complexity (AC:L), but critically requires authenticated access (PR:L), which significantly reduces the threat surface compared to an unauthenticated flaw. The attack requires the attacker to already be a registered Magento user with the ability to create a wishlist and obtain a sharing code, then discover or enumerate valid wishlist_item_ids from victim accounts - a multi-step process. Active exploitation status is not confirmed (KEV absence, no POC reference provided), and the attack is opportunistic rather than mass-exploitable without enumeration. The escalation to file disclosure requires additional preconditions: the target product must use file custom options, and the file metadata must be accessible via a non-ownership-bound download endpoint. The CVSS vector lacks populated optional fields (E:X for exploitation ease, RE:X for remediation level), limiting precision, but the low privileges requirement and network vector suggest this is a secondary or chained vulnerability rather than a critical standalone issue. For a typical e-commerce deployment, the risk is moderate-to-low for general data loss but elevated for environments handling sensitive customer data (medical, financial uploads via custom options). Defenders should prioritize patching primarily to prevent the custom-option and file-disclosure paths rather than treating this as an emergency critical flaw.

Exploit ScenarioDerived

An attacker registers a Magento LTS account and creates a wishlist, sharing it with a public code. The attacker then discovers or enumerates a wishlist_item_id from a victim's private wishlist (either through information disclosure, timing attacks, or sequential ID guessing). The attacker crafts a request to the add-to-cart endpoint, supplying their valid sharing code paired with the victim's item ID; the endpoint processes the request and imports the victim's item (including private custom options and, if applicable, uploaded files) into the attacker's cart. If the product includes a file custom option, the attacker can access the file metadata and download the file via an ownership-unbound download endpoint, resulting in cross-user file disclosure.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 20, 2026

Magento LTS prior to version 20.17.0 allows authenticated attackers to access private wishlist items from other users via an authorization bypass in the shared wishlist add-to-cart endpoint. The vulnerability permits an attacker with a valid sharing code for one wishlist to import items from a different victim's wishlist into their cart by manipulating the wishlist_item_id parameter, potentially exposing private custom option data and enabling cross-user file disclosure when file upload custom options are present. CVSS 5.3 (AV:N/AC:L/PR:L) indicates network-accessible exploitation requiring low privileges; patch version 20.17.0 resolves the issue.

RemediationAI

Magento LTS users should upgrade to version 20.17.0 or later immediately to patch the authorization bypass. The vendor fix verifies that wishlist_item_id belongs to the shared wishlist referenced by the sharing_code before processing add-to-cart requests, eliminating the IDOR condition. For users unable to immediately upgrade, implement network-level or application-level mitigations: restrict access to the shared wishlist add-to-cart endpoint (typically /wishlist/shared/add/) to authenticated users only via Web Application Firewall rules, monitor for suspicious patterns of wishlist_item_id enumeration or mismatches between sharing_code and item ownership, and audit wishlist sharing logs for cross-account item imports. If custom options with file uploads are in use, additionally verify file download endpoints enforce ownership checks (not part of this CVE but a correlated risk). Note that these mitigations do not address the underlying logic flaw and should be treated as temporary controls pending patching. Reference the OpenMage security advisory at https://github.com/OpenMage/magento-lts/security/advisories/GHSA-665x-ppc4-685w for detailed patch release notes.

Affected VersionsENISA

magento-lts < 20.17.0

Affected Packages

composer openmage/magento-lts fix: 20.17.0
euvd magento_lts fix: 20.17.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Magento LTS is a community-maintained fork of the Magento Community Edition e-commerce platform written in PHP. The vulnerability resides in the shared wishlist add-to-cart endpoint (part of the Wishlist module), which implements a two-parameter authorization model: a public sharing_code that grants access to a specific shared wishlist, and a wishlist_item_id that identifies the product to add to cart. The flaw is a classic insecure direct object reference (IDOR) combined with insufficient cross-reference validation. When processing the add-to-cart request, the endpoint verifies the sharing_code belongs to a valid wishlist but fails to validate that the specified wishlist_item_id actually belongs to that same wishlist. This allows an attacker to supply a valid sharing_code from wishlist A with an item ID from the victim's wishlist B, bypassing ownership checks. The vulnerability is classified as CWE-862 (Missing Authorization), indicating the system fails to enforce authorization policies before performing sensitive operations. The reuse of the victim's stored buyRequest data during import is the attack vector for escalating to custom option disclosure and, when file uploads are involved, cross-user file access due to the download endpoint not being bound to the file owner.

Know when Magento Lts gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch released
Apr 23, 2026 - 17:46 nvd
Patch available
Patch available
Apr 20, 2026 - 17:16 EUVD
CVE Published
Apr 20, 2026 - 16:19 nvd
MEDIUM 5.3

DescriptionCVE.org

Magento Long Term Support (LTS) is an unofficial, community-driven project provides an alternative to the Magento Community Edition e-commerce platform with a high level of backward compatibility. Prior to version 20.17.0, the shared wishlist add-to-cart endpoint authorizes access with a public sharing_code, but loads the acted-on wishlist item by a separate global wishlist_item_id and never verifies that the item belongs to the shared wishlist referenced by that code. This lets an attacker use a valid shared wishlist code for wishlist A and a wishlist item ID belonging to victim wishlist B to import victim item B into the attacker's cart through the shared wishlist flow for wishlist A. Because the victim item's stored buyRequest is reused during cart import, the victim's private custom-option data is copied into the attacker's quote. If the product uses a file custom option, this can be elevated to cross-user file disclosure because the imported file metadata is preserved and the download endpoint is not ownership-bound. Version 20.17.0 patches the issue.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2026-128049 CRITICAL
9.4 Nov 13

Cross-site request forgery in OpenMage LTS's OAuth authorization flow allows anyone holding valid OAuth consumer credent

CVE-2026-128046 CRITICAL
9.2 Nov 13

Unauthenticated file upload in OpenMage LTS (magento-lts) before 20.18.2 and in the 21.0.0 beta line before 21.0.0-beta3

CVE-2026-128047 CRITICAL
9.2 Nov 13

Account takeover affects OpenMage LTS releases before 20.18.2 and 21.0.0-beta pre-releases before 21.0.0-beta3 because c

CVE-2026-128041 HIGH
8.8 Nov 13

Stored cross-site scripting in OpenMage LTS (the Magento 1 community fork) lets an unauthenticated guest plant script in

CVE-2026-128044 HIGH
8.7 Nov 13

OAuth 1.0a callback allowlist bypass in OpenMage LTS (magento-lts) allows someone holding a leaked consumer key and secr

CVE-2026-40488 HIGH
8.7 Apr 20

Remote code execution in OpenMage Magento LTS versions before 20.17.0 allows authenticated attackers to upload executabl

CVE-2026-128040 HIGH
8.4 Nov 13

Stored cross-site scripting in OpenMage LTS (composer package openmage/magento-lts) before 20.18.2 and in the 21.0.0 bet

CVE-2026-25524 HIGH
8.1 Apr 20

Remote code execution in OpenMage Magento LTS versions prior to 20.17.0 allows unauthenticated attackers to execute arbi

CVE-2026-128030 HIGH
7.4 Nov 13

OpenMage LTS fails to end already-open API sessions when an administrator revokes access, so SOAP v1/v2, WS-I, XML-RPC,

CVE-2026-128048 MEDIUM
6.9 Nov 13

Restricted administrators in OpenMage LTS can read decrypted store-configuration secrets - PayPal API credentials, payme

CVE-2026-128045 MEDIUM
6.9 Nov 13

The order-status RSS feed in OpenMage LTS (the community-maintained Magento 1 fork) builds its access key from unsigned

CVE-2026-128042 MEDIUM
6.3 Nov 13

Concurrent checkout submissions against OpenMage LTS (the community Magento 1 LTS fork) can redeem a limited shopping-ca

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy