Skip to content

Magento stored cross-site scripting vulnerability

Moderate severity GitHub Reviewed Published May 24, 2022 to the GitHub Advisory Database • Updated Nov 6, 2025

Package

composer magento/community-edition (Composer)

Affected versions

< 2.3.7-p1
= 2.3.7
>= 2.4.2-p1, < 2.4.2-p2
= 2.4.2

Patched versions

2.3.7-p1
2.4.2-p2
composer magento/project-community-edition (Composer)
<= 2.0.2
None

Description

Magento Commerce versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by a stored cross-site scripting vulnerability that could be abused by an attacker to inject malicious scripts into vulnerable form fields. Malicious JavaScript may be executed in a victim’s browser when they browse to the page containing the vulnerable field.

References

Published by the National Vulnerability Database Sep 1, 2021
Published to the GitHub Advisory Database May 24, 2022
Reviewed Nov 6, 2025
Last updated Nov 6, 2025

Severity

Moderate

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(83rd percentile)

Weaknesses

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Learn more on MITRE.

CVE ID

CVE-2021-36027

GHSA ID

GHSA-x2v2-2jhp-c5hv

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.