CVE-2019-7857: Magento Cross-Site Request Forgery (CSRF)

magento/community-edition Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
4.3

CVE-2019-7857: Magento Cross-Site Request Forgery (CSRF). 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 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 is an open-source e-commerce platform used for building online stores. It provides various features for managing products, orders, and customer data. The vulnerability in question affects Magento versions 2.1 prior to 2.1.18, 2.2 prior to 2.2.9, and 2.3 prior to 2.3.2. This vulnerability allows for cross-site request forgery (CSRF) attacks, where unauthorized actions can be performed on behalf of a shopper due to a weak anti-CSRF token implementation.

Vulnerability Detail

The CSRF vulnerability in Magento allows attackers to trick shoppers into performing unintended actions on their behalf. By exploiting this vulnerability, an attacker can add unwanted items to a shopper's cart without their knowledge or consent. This can lead to financial loss, reputation damage, and a compromised shopping experience for the affected users. The vulnerability is rated as moderate severity with a CVSS score of 4.3.

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

There is no specific workaround provided for this vulnerability. It is essential to apply the recommended fix by updating Magento to the latest version.

Conclusion

The CSRF vulnerability in Magento can lead to unauthorized actions being performed on behalf of shoppers, potentially causing financial loss and reputation damage. It is crucial to update Magento to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for magento/community-edition →

Share this vulnerability

FAQ

Magento is an open-source e-commerce platform used for building online stores. It provides various features for managing products, orders, and customer data.

Cross-site request forgery (CSRF) is an attack that tricks the victim into submitting a malicious request. In the context of this vulnerability, it allows unauthorized actions to be performed on behalf of a shopper.

The consequences of this vulnerability include unauthorized actions being performed on behalf of shoppers, such as adding unwanted items to their cart. This can lead to financial loss, reputation damage, and a compromised shopping experience.

The vulnerability is rated as moderate severity with a CVSS score of 4.3.

To fix this vulnerability, it is recommended to update Magento to the latest version available. Refer to the 'how_to_fix' section for specific version recommendations.

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