CVE-2021-21023:
Magento stored cross-site scripting vulnerability in the admin console
4.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.85534%
CWE
Published
5/24/2022
Updated
2/10/2025
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
magento/community-edition | composer | < 2.3.6 | 2.3.6 |
magento/community-edition | composer | >= 2.4.0, < 2.4.1-p1 | 2.4.1-p1 |
magento/project-community-edition | composer | <= 2.0.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper output sanitization in the admin notification preview flow. Analysis of Magento's security patches reveals that the fix involved adding HTML escaping to title parameters in both the Block class (via escapeHtml
) and template rendering. The Preview controller's handling of request parameters without validation()
creates the injection vector. These components directly map to the described stored XSS attack pattern requiring admin privileges.