Miggo Logo

CVE-2021-21023:
Magento stored cross-site scripting vulnerability in the admin console

4.8

CVSS Score
3.1

Basic Information

EPSS Score
0.85534%
Published
5/24/2022
Updated
2/10/2025
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
magento/community-editioncomposer< 2.3.62.3.6
magento/community-editioncomposer>= 2.4.0, < 2.4.1-p12.4.1-p1
magento/project-community-editioncomposer<= 2.0.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

M***nto v*rsions *.*.* (*n* **rli*r), *.*.*-p* (*n* **rli*r) *n* *.*.* (*n* **rli*r) *r* vuln*r**l* to * stor** *ross-sit* s*riptin* vuln*r**ility in t** **min *onsol*. Su***ss*ul *xploit*tion *oul* l*** to *r*itr*ry J*v*S*ript *x**ution in t** vi*ti

Reasoning

T** vuln*r**ility st*ms *rom improp*r output s*nitiz*tion in t** **min noti*i**tion pr*vi*w *low. *n*lysis o* M***nto's s**urity p*t***s r*v**ls t**t t** *ix involv** ***in* *TML *s**pin* to titl* p*r*m*t*rs in *ot* t** *lo*k *l*ss (vi* `*s**p**tml`)