CVE-2021-21029Magento XSS
Magento Reflected Cross-site Scripting vulnerability via 'file' parameter
Published Feb 12, 2021 · Updated Oct 24, 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.
Scores
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
Exploit maturity
None known
ATLAS score
30/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-21029
- 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
- advisoryUSOM advisory
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
Oct 24, 2026
Weakness Type
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- advisorynvd.nist.gov · CVE-2021-21029
- advisoryGHSA advisory
- advisorygithub.com · a2eb7e2
- advisorygithub.com · a349e02
- advisoryhelpx.adobe.com · apsb21-08.html
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 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo