CVE-2021-28556: Magento DOM-based Cross-Site Scripting vulnerability on mage-messages cookies

medium Affects magento/community-edition, magento/project-community-edition. Feed 2026.10.29.4, updated 2026-10-29; published ; advisory modified .

Magento DOM-based Cross-Site Scripting vulnerability on mage-messages cookies

Package
magento/community-edition Composer
Affected versions
>=2.4.0 and <2.4.2-p1 or <2.3.7
Fixed in
2.4.2-p1, 2.3.7
Severity
medium  CVSS 6.9
Exploitation
not on CISA KEV · EPSS 1% (72.4th percentile)
Published
2022-05-24
Source
osv.dev

References

Magento DOM-based Cross-Site Scripting vulnerability on mage-messages cookies

Package
magento/project-community-edition Composer
Affected versions
<=2.0.2
Fixed in
no fix recorded
Severity
medium  CVSS 6.9
Exploitation
not on CISA KEV · EPSS 1% (72.4th percentile)
Published
2022-05-24
Source
osv.dev

References

CWE-79
NVD recordmagento/community-edition advisoriesmagento/project-community-edition advisories

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 20,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked

Related advisories