Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. magento/community-edition
  4. ›
  5. CVE-2019-7940

CVE-2019-7940: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

May 24, 2022 (updated August 1, 2023)

A stored cross-site scripting vulnerability exists in the admin panel of Magento Open Source prior to 1.9.4.2, and Magento Commerce prior to 1.14.4.2, Magento 2.1 prior to 2.1.18, Magento 2.2 prior to 2.2.9, Magento 2.3 prior to 2.3.2. This could be exploited by an authenticated user with privileges to modify store currency options to inject malicious javascript.

References

  • github.com/advisories/GHSA-cgm7-gjhw-rrf6
  • nvd.nist.gov/vuln/detail/CVE-2019-7940
  • web.archive.org/web/20220127030535/https://magento.com/security/patches/magento-2.3.2-2.2.9-and-2.1.18-security-update-24

Code Behaviors & Features

Detect and mitigate CVE-2019-7940 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.1.0 before 2.1.18, all versions starting from 2.2.0 before 2.2.9, all versions after 2.3.0 before 2.3.2

Fixed versions

  • 2.1.18
  • 2.2.9
  • 2.3.2

Solution

Upgrade to versions 2.1.18, 2.2.9, 2.3.2 or above.

Impact 4.8 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/magento/community-edition/CVE-2019-7940.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.