CVE-2017-7391: Magmi XSS Vulnerability

dweeves/magmi Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Moderate
6.1

CVE-2017-7391: Magmi XSS Vulnerability. Affects dweeves/magmi versions < 0.7.24. Fixed in 0.7.24. 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

Magmi is a package available on Packagist that provides a Magento Mass Importer tool. It is designed to facilitate the import of large quantities of data into a Magento e-commerce platform. The package is widely used by developers and administrators to streamline the data import process. However, a vulnerability has been discovered in Magmi version 0.7.22 that exposes the application to a Cross-Site Scripting (XSS) attack.

Vulnerability Detail

The XSS vulnerability in Magmi 0.7.22 is caused by a lack of proper input filtering in the magmi-git-master/magmi/web/ajax_gettime.php URL. This allows an attacker to inject arbitrary HTML and script code into the vulnerable website, potentially leading to session hijacking, data theft, or other malicious activities. The vulnerability can be exploited by tricking a user into visiting a specially crafted URL that contains the malicious code.

How To Fix

Minimum fixed version

0.7.24

This is the first release that contains the fix.

composer require dweeves/magmi:0.7.24

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can manually implement input filtering and validation in the affected code. This can be done by using appropriate sanitization functions or libraries to strip out any potentially malicious code from user-supplied input. However, this workaround is not recommended as it may introduce errors or be incomplete, and it is always best to use the latest secure version of the software.

Conclusion

The XSS vulnerability in Magmi 0.7.22 exposes the application to potential attacks that can compromise user data and the integrity of the website. It is crucial for developers and administrators to upgrade to a patched version of Magmi and implement proper input filtering and validation to mitigate the risk of XSS attacks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for dweeves/magmi →

Share this vulnerability

FAQ

Magmi is a Magento Mass Importer tool that simplifies the process of importing large quantities of data into a Magento e-commerce platform.

The XSS vulnerability in Magmi allows an attacker to execute arbitrary HTML and script code in the context of the vulnerable website, potentially leading to session hijacking, data theft, or other malicious activities.

To fix the XSS vulnerability, it is recommended to upgrade to a patched version of Magmi that includes proper input filtering. Developers should also sanitize and validate all user-supplied input to prevent similar vulnerabilities in the future.

As a temporary workaround, developers can manually implement input filtering and validation in the affected code. However, this workaround is not recommended as it may introduce errors or be incomplete.

For more information about Magmi and its vulnerabilities, you can visit the official GitHub repository or consult the documentation provided by the Magmi project.

Related vulnerabilities

Recent vulnerabilities recorded for dweeves/magmi.

How To Fix

Minimum fixed version

0.7.24

This is the first release that contains the fix.

composer require dweeves/magmi:0.7.24

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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