6.9medium
Magento Commerce DOM-based cross-site scripting (XSS) could lead to arbitrary javascript execution
- Severity
- 6.9medium CVSS:3.1 by adobe
- Exploit likelihood
- 1.40% (higher than 73% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- adobe
- Also known as
- GHSA-39ch-rg26-gmq5BIT-MAGENTO-2021-28556
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| magento/community-edition (Packagist) | from 2.4.0 before 2.4.2-p1, before 2.3.7 | GitHub Advisory Database |
| magento/project-community-edition (Packagist) | up to 2.0.2 | GitHub Advisory Database |
| magento magento | before 2.3.7, from 2.4.0 up to 2.4.2 | NVD |
| magento (Bitnami) | before 2.3.7, from 2.4.0 before 2.4.3 | Bitnami Vulnerability Database |
All scores
| adobe | 6.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N |
| GitHub | 6.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N |
| NVD | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
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.
NVD (es)
Magento versiones 2.4.2 (y anteriores), versiones 2.4.1-p1 (y anteriores) y versiones 2.3.6-p1 (y anteriores), están afectadas por una vulnerabilidad de tipo Cross-Site Scripting basada en el DOM en las cookies de mage-messages. Una explotación con éxito podría conllevar a una ejecución arbitraria de JavaScript por parte de un atacante no autenticado. Es requerida una interacción del usuario para una explotación con éxito
Bitnami Vulnerability Database
Magento versions 2.4.2 (and earlier), 2.4.1 (and earlier) and 2.3.6 (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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-28556 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-39ch-rg26-gmq5 changed 2025-02-10 | CC-BY-4.0 |
| NVD | CVE-2021-28556 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-MAGENTO-2021-28556 changed 2026-09-08 | Apache-2.0 |