CVE-2021-21029:
Magento Reflected Cross-site Scripting vulnerability via 'file' parameter
4.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.97363%
CWE
Published
5/24/2022
Updated
1/20/2024
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-p1 | 2.3.6-p1 |
magento/community-edition | composer | >= 2.4.0, < 2.4.2 | 2.4.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The patch modifies the getNameUnsanitizedHtml
function to use escaper.escapeHtml
, indicating that the original function was vulnerable to XSS. This function is used to render product names, and the patch ensures that user-input data is properly sanitized.