{"id":"CVE-2021-28556","aliases":["CVE-2021-28556","GHSA-39ch-rg26-gmq5","BIT-MAGENTO-2021-28556"],"related":[],"kind":"vulnerability","state":"published","title":"Magento Commerce DOM-based cross-site scripting (XSS) could lead to arbitrary javascript execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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","source":"nvd"},{"lang":"en","text":"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.","format":"markdown","source":"bitnami"}],"published":"2021-06-28T13:42:13.145Z","modified":"2026-09-08T08:48:09.695Z","severity":{"scorer":"adobe","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"adobe","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"2.4.2","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"2.3.6-p1","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"2.4.1-p1","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"None","status":"affected"}],"vendor":"Adobe","product":"Magento Commerce","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.4.0","status":"affected","fixed":"2.4.2-p1"}],"ecosystem":"Packagist","package":"magento/community-edition","purl":"pkg:composer/magento/community-edition","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.7"}],"ecosystem":"Packagist","package":"magento/community-edition","purl":"pkg:composer/magento/community-edition","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.0.2"}],"ecosystem":"Packagist","package":"magento/project-community-edition","purl":"pkg:composer/magento/project-community-edition","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.3.7"},{"status":"affected","fixed":"2.3.7"},{"status":"affected","introduced":"2.4.0","lastAffected":"2.4.2"},{"status":"affected","introduced":"2.4.0","lastAffected":"2.4.2"}],"vendor":"magento","product":"magento","cpe":"cpe:2.3:a:magento:magento:*:*:*:*:commerce:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.3.7"},{"type":"semver","introduced":"2.4.0","status":"affected","fixed":"2.4.3"}],"ecosystem":"Bitnami","package":"magento","purl":"pkg:bitnami/magento","source":"bitnami"}],"references":[{"url":"https://helpx.adobe.com/security/products/magento/apsb21-30.html","tags":["advisory","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28556","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/magento/magento2/commit/1bd5cb8c065e44779526c0b044ce19b884707695","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/magento/magento2","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"adobe","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28556","url":"https://www.cve.org/CVERecord?id=CVE-2021-28556","licence":"CVE Terms of Use","modified":"2024-09-17T02:11:10.307Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-39ch-rg26-gmq5","url":"https://github.com/advisories/GHSA-39ch-rg26-gmq5","licence":"CC-BY-4.0","modified":"2025-02-10T21:28:59.014Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28556","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28556","licence":"Public domain","modified":"2026-06-17T03:46:31.733Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MAGENTO-2021-28556","url":"https://osv.dev/vulnerability/BIT-MAGENTO-2021-28556","licence":"Apache-2.0","modified":"2026-09-08T08:48:09.695Z"}],"updatedAt":"2026-11-25T22:58:02.344Z","epss":{"score":0.01397,"percentile":0.73217,"date":"2026-12-01T12:00:22.000Z"}}