CVE-2021-39864: Magento Open Source allows Cross-Site Request Forgery (CSRF)
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.74124%
CWE
Published
5/24/2022
Updated
3/4/2025
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| magento/community-edition | composer | >= 2.4.2-p1, <= 2.4.2-p2 | |
| magento/community-edition | composer | = 2.4.3 | |
| magento/community-edition | composer | <= 2.3.7-p1 | 2.3.7-p2 |
| magento/community-edition | composer | = 2.4.2 | |
| magento/project-community-edition | composer | <= 2.0.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability specifically involves CSRF via Wishlist Share Links. In Magento's architecture, wishlist sharing is handled by the Share controller action. CSRF vulnerabilities typically occur when state-changing endpoints lack anti-CSRF protections like token validation. Since the exploit requires no authentication and affects wishlist sharing, the execute() method in the Share controller is the most logical point where CSRF checks would be missing. This aligns with Magento's typical CSRF protection patterns (e.g., @CsrfAware annotations or form key validation), which appear to be absent in this endpoint based on the vulnerability description.