# CVE-2021-28556: Magento Commerce DOM-based cross-site scripting (XSS) could lead to arbitrary javascript execution

- Severity: Medium 6.9 (CVSS:3.1, scored by adobe) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.40%, higher than 73% of CVEs (2026-12-01)
- Published: 2021-06-28T13:42:13.145Z
- Modified: 2026-09-08T08:48:09.695Z
- Also known as: GHSA-39ch-rg26-gmq5, BIT-MAGENTO-2021-28556
- Weaknesses: CWE-79
- Assigned by: adobe

## Description

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.

(As written by CVE List.)

## Affected

- Adobe Magento Commerce: from unspecified up to 2.4.2; from unspecified up to 2.3.6-p1; from unspecified up to 2.4.1-p1; from unspecified up to None
- magento/community-edition (Packagist): from 2.4.0 before 2.4.2-p1; before 2.3.7
- magento/project-community-edition (Packagist): up to 2.0.2
- magento magento: before 2.3.7; from 2.4.0 up to 2.4.2
- magento (Bitnami): before 2.3.7; from 2.4.0 before 2.4.3

## Every score

- adobe: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://helpx.adobe.com/security/products/magento/apsb21-30.html> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28556> (advisory, web)
- <https://github.com/magento/magento2/commit/1bd5cb8c065e44779526c0b044ce19b884707695> (web)
- <https://github.com/magento/magento2> (package)

## Sources

- CVE List: [CVE-2021-28556](https://www.cve.org/CVERecord?id=CVE-2021-28556), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-39ch-rg26-gmq5](https://github.com/advisories/GHSA-39ch-rg26-gmq5), CC-BY-4.0, modified 2025-02-10
- NVD: [CVE-2021-28556](https://nvd.nist.gov/vuln/detail/CVE-2021-28556), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MAGENTO-2021-28556](https://osv.dev/vulnerability/BIT-MAGENTO-2021-28556), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-28556 · Whole record: https://cve.day/CVE-2021-28556.json · Rebuilt by cve.day 2026-11-25T22:58:02.344Z
