CVE-2024-20759 Adobe Commerce | Cross-site Scripting (Stored XSS) (CWE-79)

High 8.1 Published Updated

High-privileged attackers can inject malicious scripts into Adobe Commerce form fields, leading to script execution in victim browsers.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-20759?

CVE-2024-20759 is a high-severity cross-site scripting vulnerability in Adobe Commerce, published on 10 Apr 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Adobe Commerce versions 2.4.6-p4, 2.4.5-p6, 2.4.4-p7, 2.4.7-beta3 and earlier are affected by a stored Cross-Site Scripting (XSS) vulnerability that could be abused by a high-privileged 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. Confidentiality and integrity are considered high due to having admin impact.

Weakness: CWE-79

Which versions are affected by CVE-2024-20759?

13 open source packages ship an affected version, including magento/community-edition, magento and magento/project-community-edition. It affects 2 products.

PackageAffectedFixed in
magento/community-edition PackagistAll versionsNone
magento/community-edition PackagistAll versionsNone
magento/community-edition PackagistFrom 2.4.4-p12.4.4-p8
magento/community-edition PackagistFrom 2.4.4-p12.4.4-p8
magento/community-edition PackagistFrom 2.4.5-p12.4.5-p7
magento/community-edition PackagistFrom 2.4.5-p12.4.5-p7
7 more packages
magento/community-edition PackagistFrom 2.4.6-p12.4.6-p5
magento/community-edition PackagistFrom 2.4.6-p12.4.6-p5
magento/community-edition PackagistFrom 2.4.7-beta12.4.7
magento/community-edition PackagistFrom 2.4.7-beta12.4.7
magento BitnamiFrom 2.4.7-alpha02.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8
magento/project-community-edition PackagistAll versions to 2.0.2None
magento/project-community-edition PackagistAll versions to 2.0.2None

Products include Adobe Commerce, Adobe Magento.

How do I fix CVE-2024-20759?

Upgrade magento/community-edition to a fixed version for your release line: 2.4.4-p8, 2.4.5-p7, 2.4.6-p5 or 2.4.7.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-20759 being exploited?

There is no known exploitation of CVE-2024-20759 in the wild and no public exploit code.

All Adobe Commerce vulnerabilities

Sources

Also known as BIT-magento-2024-20759, GHSA-59vf-hjxc-f9c5.

Is CVE-2024-20759 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free