{"id":"CVE-2021-28556","aliases":["BIT-magento-2021-28556","GHSA-39ch-rg26-gmq5"],"url":"https://o3.security/vulnerability/CVE-2021-28556","summary":"Magento DOM-based Cross-Site Scripting vulnerability on mage-messages cookies","details":"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.","published":"2021-06-28T14:15:09.980Z","modified":"2026-07-09T01:06:39.973580Z","cvss":{"score":4.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"magento/community-edition","fixedVersion":"2.4.2-p1"},{"ecosystem":"Packagist","name":"magento/community-edition","fixedVersion":"2.3.7"},{"ecosystem":"Packagist","name":"magento/project-community-edition","fixedVersion":null}],"fix":{"url":"https://github.com/magento/magento2/commit/1bd5cb8c065e44779526c0b044ce19b884707695","label":"magento/magento2@1bd5cb8"},"references":[{"type":"ADVISORY","url":"https://helpx.adobe.com/security/products/magento/apsb21-30.html"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28556"},{"type":"WEB","url":"https://github.com/magento/magento2/commit/1bd5cb8c065e44779526c0b044ce19b884707695"},{"type":"PACKAGE","url":"https://github.com/magento/magento2"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T01:06:39.973580Z"}}