CVE-2019-7908: Magento Cross-site Scripting in the admin panel

magento/community-edition Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
4.8

CVE-2019-7908: Magento Cross-site Scripting in the admin panel. Affects magento/community-edition across 3 version ranges.

>= 2.1.0, < 2.1.18 >= 2.2.0, < 2.2.9 >= 2.3.0, < 2.3.2

Fixed in 2.1.18, 2.2.9 or 2.3.2, 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Magento is an open-source e-commerce platform that allows businesses to create and manage online stores. It provides a wide range of features for product management, order processing, and customer engagement. However, Magento versions 2.1 prior to 2.1.18, 2.2 prior to 2.2.9, and 2.3 prior to 2.3.2 are vulnerable to a stored cross-site scripting (XSS) attack in the admin panel. This vulnerability can be exploited by an authenticated user with privileges to modify product information.

Vulnerability Detail

The stored XSS vulnerability in Magento's admin panel allows an attacker to inject malicious scripts into the application, which are then executed when viewed by other users. This can lead to various attacks, such as stealing sensitive information, session hijacking, or performing actions on behalf of the victim. The vulnerability originates from insufficient input sanitization and validation in the product information modification functionality.

How To Fix

Fixed versions by release line

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

  • >= 2.1.0, < 2.1.18 2.1.18
    composer require magento/community-edition:2.1.18
  • >= 2.2.0, < 2.2.9 2.2.9
    composer require magento/community-edition:2.2.9
  • >= 2.3.0, < 2.3.2 2.3.2
    composer require magento/community-edition:2.3.2

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

Workaround

If immediate patching is not possible, a temporary workaround is to restrict access to the admin panel only to trusted users and implement a web application firewall (WAF) to filter out malicious script injections. Additionally, educating users about the risks of clicking on untrusted links or opening suspicious attachments can help mitigate the impact of this vulnerability.

Conclusion

The stored cross-site scripting vulnerability in Magento's admin panel can have serious consequences if left unpatched. It is crucial for Magento users to upgrade to the latest patched versions and implement additional security measures to protect against potential attacks. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for magento/community-edition →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary scripts in the context of other users, potentially leading to unauthorized actions, data theft, or session hijacking.

An authenticated user with privileges to modify product information can exploit this vulnerability.

There have been reported instances of this vulnerability being exploited in the wild, highlighting the importance of applying the necessary patches.

No, this vulnerability requires an authenticated user to exploit it. However, if an attacker gains access to a valid user account, they can exploit the vulnerability remotely.

Yes, the CVSS score for this vulnerability is 4.8, indicating a moderate severity level.

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.1.0, < 2.1.18 2.1.18
    composer require magento/community-edition:2.1.18
  • >= 2.2.0, < 2.2.9 2.2.9
    composer require magento/community-edition:2.2.9
  • >= 2.3.0, < 2.3.2 2.3.2
    composer require magento/community-edition:2.3.2

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