CVE-2021-36028 — Vulnerability in magento/community-edition
Magento has an XML Injection vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.73%). Schedule for your next planned update.
Does your project use an affected magento/community-edition version?
Paste your composer.lock to check it for CVE-2021-36028 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Magento Commerce versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by an XML Injection vulnerability when saving a configurable product. An attacker with admin privileges can trigger a specially crafted script to achieve remote code execution.
Advisory Timeline
- First published May 24, 2022 (1647 days ago).
- Last revised November 7, 2025 — 1263 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "magento/community-edition:^2.3.7-p1"
composer require "magento/community-edition:^2.4.2-p2"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| magento/community-edition Packagist · Affected: 2.3.7 | No fix available |
| magento/community-edition Packagist · Affected: 2.4.2 | No fix available |
| magento/project-community-edition Packagist · Affected: 0.1.0-alpha100, 0.1.0-alpha101, 0.1.0-alpha102, 0.1.0-alpha103 (+49 more) | Range-based data available |
| magento/community-edition Packagist · Affected: 0.1.0-alpha100, 0.1.0-alpha101, 0.1.0-alpha102, 0.1.0-alpha103 (+118 more) | 2.3.7-p1 |
| magento/community-edition Packagist · Affected: 2.4.2-p1 | 2.4.2-p2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-91
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
Frequently Asked Questions
- What is CVE-2021-36028?
- Magento has an XML Injection vulnerability. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2021-36028?
- CVE-2021-36028 affects magento/community-edition and magento/project-community-edition. It has a 2.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-36028 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 86.8% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2021-36023CRITICAL
Magento XML Injection vulnerability in the Widgets Update Layout
- CVE-2024-39399HIGH
Magento Path Traversal vulnerability
- CVE-2025-24438HIGH
Magento stored Cross-Site Scripting (XSS) vulnerability
- CVE-2024-39401HIGH
Magento OS Command ('OS Command Injection') vulnerability
- CVE-2025-43585HIGH
Magento Improper Authorization leading to security feature bypass
- CVE-2025-24416HIGH
Magento Stored Cross-Site Scripting (XSS) Vulnerability
- CVE-2023-38218MEDIUM
Magento Open Source allows Incorrect Authorization
- CVE-2023-38249MEDIUM
Magento Open Source allows SQL Injection