Live threats

All CVEs / Magento

CVE-2021-28556Magento

Medium 4.8

Priority
29
CVSS 3.1
4.8
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
Yes
Published
Jun 28, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

What happens

Magento versions 2.4.2 (and earlier), 2.4.1-p1 (and earlier) and 2.3.6-p1 (and earlier) are affected by a DOM-based Cross-Site Scripting vulnerability on mage-messages cookies. Successful exploitation could lead to arbitrary JavaScript execution by an unauthenticated attacker. User interaction is required for successful exploitation.

Original NVD text.

What to do

  1. Apply the vendor's security update for Magento.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist magento/community-edition ≥ 2.4.0 < 2.4.2-p1 2.4.2-p1 composer require "magento/community-edition:^2.4.2-p1"
Packagist magento/community-edition < 2.3.7 2.3.7 composer require "magento/community-edition:^2.3.7"
Packagist magento/project-community-edition ≤ 2.0.2 no fixed version —

Per OSV / GitHub Advisories (GHSA-39ch-rg26-gmq5). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
magentomagento< 2.3.7
magentomagento< 2.3.7
magentomagento≥ 2.4.0 ≤ 2.4.2
magentomagento≥ 2.4.0 ≤ 2.4.2

Official sources

References

Links published by the sources. Open them with care.