CVE-2021-21029
MediumMagento Reflected Cross-site Scripting vulnerability via 'file' parameter
Published Feb 12, 2021 · Updated Sep 8, 2026 · Also known as BIT-magento-2021-21029, GHSA-jwxh-wj79-ccm6
Key Facts
Patch immediately- CVE-2021-21029 is a medium-severity vulnerability (CVSS 4.8 v3.1) affecting Magento, magento/community-edition (composer), Magento Commerce.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 85% probability of exploitation in the next 30 days.
- Fixed versions are available, including Magento 2.3.6, Magento 2.4.1, magento/community-edition 2.3.6-p1.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v3.1
4.8
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
EPSS (30-day exploit likelihood)
85%
Higher than 99.7% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
None known
Get the full CVE-2021-21029 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) are affected by a Reflected Cross-site Scripting vulnerability via 'file' parameter. Successful exploitation could lead to arbitrary JavaScript execution in the victim's browser. Access to the admin console is required for successful exploitation.
Affected Products
13 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| MagentoMagento | 2.3.6, 2.4.0, 2.4.0-p1, 2.4.1 | 2.3.6 |
| magento/community-editioncomposer | >= 2.4.0 | 2.4.2 |
| Magento Commerce | >= unspecified | n/a |
Patched Releases
Magento
2.3.6, 2.4.1
magento/community-edition
2.3.6-p1, 2.4.2
Timeline
Publicly disclosed
Feb 12, 2021
Last updated
Sep 8, 2026
Weakness Type
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- advisoryGHSA advisory
- advisoryhttps://github.com/magento/magento2/commit/a2eb7e29ea92a8bbc86c3b6b81b59d8533088497
- advisoryhttps://github.com/magento/magento2/commit/a349e022c9ae070e7da262021f9ef182105aa00b
- advisoryhttps://helpx.adobe.com/security/products/magento/apsb21-08.html
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-21029
FAQ
Common Questions.
Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) are affected by a Reflected Cross-site Scripting vulnerability via 'file' parameter.
Affected: Magento versions 2.3.6, 2.4.0, 2.4.0-p1, 2.4.1; magento/community-edition (composer) versions >= 2.4.0; Magento Commerce versions >= unspecified. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including Magento 2.3.6, Magento 2.4.1, magento/community-edition 2.3.6-p1.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2021-21029 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo