CVE-2024-20719: Magento Community Edition XSS Vulnerability

magento/community-edition Updated 02 Oct 2025

Summary

15/02/2024
Yes i
High
9.1

CVE-2024-20719: Magento Open Source allows Cross-Site Scripting (XSS). Affects magento/community-edition across 3 version ranges.

>= 2.4.4-p1, < 2.4.4-p7 >= 2.4.5-p1, < 2.4.5-p6 >= 2.4.6-p1, < 2.4.6-p4

Fixed in 2.4.4-p7, 2.4.5-p6 or 2.4.6-p4, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Magento Community Edition is a widely used open-source e-commerce platform that enables businesses to create and manage online stores. It offers a range of features including product management, customer management, and order processing. However, certain versions of Magento are susceptible to a stored Cross-Site Scripting (XSS) vulnerability, which can be exploited by attackers to inject malicious scripts into admin pages.

Vulnerability Detail

The vulnerability arises from improper input validation in the admin interface of Magento Community Edition. An attacker with admin access can exploit this flaw to inject malicious JavaScript code into admin pages. When a victim accesses the compromised page, the malicious script executes in their browser, potentially allowing the attacker to gain unauthorized access to sensitive information or perform actions on behalf of the victim. This vulnerability is classified as high severity with a CVSS score of 9.1, indicating a significant risk to affected systems.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.4.4-p1, < 2.4.4-p7 2.4.4-p7
    composer require magento/community-edition:2.4.4-p7
  • >= 2.4.5-p1, < 2.4.5-p6 2.4.5-p6
    composer require magento/community-edition:2.4.5-p6
  • >= 2.4.6-p1, < 2.4.6-p4 2.4.6-p4
    composer require magento/community-edition:2.4.6-p4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, it is recommended to limit admin access to trusted users only and to monitor admin activities closely until the patch is applied. Additionally, consider implementing Content Security Policy (CSP) headers to mitigate the risk of XSS attacks.

Conclusion

The stored XSS vulnerability in Magento Community Edition poses a significant risk to users, particularly those with admin access. It is crucial to update to the latest patched versions to mitigate this risk. Additionally, using monitoring tools like Vulert can help maintain security by alerting users to potential vulnerabilities in real-time.

See every vulnerability recorded for magento/community-edition →

Share this vulnerability

FAQ

XSS is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users, potentially leading to unauthorized actions or data theft.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to analyze your composer.lock file without needing to sign up.

If immediate updates are not possible, restrict admin access and monitor activities closely. Implementing CSP headers can also help mitigate risks temporarily.

An attacker could execute malicious scripts in the browser of an admin user, potentially gaining unauthorized access to sensitive data or performing actions as that user.

Yes, tools like Vulert can automate the monitoring of open-source vulnerabilities in your applications, providing real-time alerts without requiring code access.

Related vulnerabilities

Recent vulnerabilities recorded for magento/community-edition.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.4.4-p1, < 2.4.4-p7 2.4.4-p7
    composer require magento/community-edition:2.4.4-p7
  • >= 2.4.5-p1, < 2.4.5-p6 2.4.5-p6
    composer require magento/community-edition:2.4.5-p6
  • >= 2.4.6-p1, < 2.4.6-p4 2.4.6-p4
    composer require magento/community-edition:2.4.6-p4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback