CVE-2024-45116: Magento Community Edition Cross-Site Scripting (XSS) Vulnerability

magento/community-edition Updated 02 Oct 2025

Summary

10/10/2024
Yes i
Moderate
8.1

CVE-2024-45116: Magento Open Source Cross-Site Scripting (XSS) vulnerability. Affects magento/community-edition across 4 version ranges.

< 2.4.4-p11 >= 2.4.5-p1, < 2.4.5-p10 >= 2.4.6-p1, < 2.4.6-p8 >= 2.4.7-beta1, < 2.4.7-p3

Fixed in 4 releases; the minimum fixed version depends 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Magento is a widely used open-source e-commerce platform that provides businesses with a flexible shopping cart system, control over the look and feel of their online store, and a wide range of functionalities. It is designed to be scalable and customizable, making it a popular choice for both small and large businesses. However, like many web applications, Magento is susceptible to security vulnerabilities, including Cross-Site Scripting (XSS), which can compromise the integrity and confidentiality of user data.

Vulnerability Detail

The vulnerability identified as CVE-2024-45116 affects multiple versions of Magento Open Source, specifically versions 2.4.7-p2, 2.4.6-p7, 2.4.5-p9, 2.4.4-p10, and earlier. This XSS vulnerability can be exploited by an attacker if they can trick a user into clicking a specially crafted link or submitting a malicious form. Once executed, the malicious scripts run within the context of the victim's browser, potentially allowing the attacker to steal sensitive information or manipulate user sessions. The exploitation of this vulnerability requires user interaction, making it a moderate risk but still significant for affected users.

How To Fix

Fixed versions by release line

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

  • < 2.4.4-p11 2.4.4-p11
    composer require magento/community-edition:2.4.4-p11
  • >= 2.4.5-p1, < 2.4.5-p10 2.4.5-p10
    composer require magento/community-edition:2.4.5-p10
  • >= 2.4.6-p1, < 2.4.6-p8 2.4.6-p8
    composer require magento/community-edition:2.4.6-p8
  • >= 2.4.7-beta1, < 2.4.7-p3 2.4.7-p3
    composer require magento/community-edition:2.4.7-p3

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, users can implement input validation and sanitization on forms and links to mitigate the risk of XSS attacks. However, this is not a substitute for applying the necessary updates.

Conclusion

The CVE-2024-45116 vulnerability poses a significant risk to users of Magento Community Edition due to its potential for exploitation through XSS attacks. It is crucial for users to update their installations to the latest patched versions to safeguard their applications and user data. Regular monitoring and vulnerability assessments, such as those provided by Vulert, can help maintain security in open-source software.

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 compromising their data and sessions.

You can check your Magento version against the affected versions listed in the vulnerability details. Additionally, you can use Vulert to monitor and alert for vulnerabilities in your software.

Failure to address this vulnerability could lead to unauthorized access to sensitive user data, loss of user trust, and potential legal ramifications.

Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If an immediate update is not possible, consider implementing input validation and sanitization as a temporary measure to reduce the risk of exploitation.

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-p11 2.4.4-p11
    composer require magento/community-edition:2.4.4-p11
  • >= 2.4.5-p1, < 2.4.5-p10 2.4.5-p10
    composer require magento/community-edition:2.4.5-p10
  • >= 2.4.6-p1, < 2.4.6-p8 2.4.6-p8
    composer require magento/community-edition:2.4.6-p8
  • >= 2.4.7-beta1, < 2.4.7-p3 2.4.7-p3
    composer require magento/community-edition:2.4.7-p3

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