# CVE-2019-8131: Magento 2 Community Edition XSS Vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.56% (percentile 40, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-vx7m-v8v2-fhwm
- **Published:** 2019-11-05T23:07:16.000Z
- **Modified:** 2026-06-17T02:41:32.600Z

## Who should check

- Projects that depend on Packagist package magento/community-edition (\>= 2.2.0, \< 2.2.10)
- Anyone running Adobe Systems Incorporated Magento 2 Magento 2.2 prior to 2.2.10; Magento 2.3 prior to 2.3.3 or 2.3.2-p1

## Description

A stored cross-site scripting (XSS) vulnerability exists in Magento 2.2 prior to 2.2.10, Magento 2.3 prior to 2.3.3 or 2.3.2-p1. An authenticated user can inject arbitrary JavaScript code into code field of an inventory source.

## Affected and fixed versions

- Packagist `magento/community-edition`: affected \>= 2.2.0, \< 2.2.10; fixed 2.2.10, 2.3.2-p1 (osv)
- Adobe Systems Incorporated Magento 2: Magento 2.2 prior to 2.2.10; Magento 2.3 prior to 2.3.3 or 2.3.2-p1 (cvelist)

## Mitigation

- Upgrade magento/community-edition to one of 2.2.10, 2.3.2-p1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2019-8131. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2019-8131.md
Affected: magento/community-edition >= 2.2.0, < 2.2.10
Fixed in: 2.2.10, 2.3.2-p1

Steps:
1. Search this machine and project for magento/community-edition (Packagist), Adobe Systems Incorporated Magento 2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2019-8131 being exploited?

There is no confirmed exploitation: CVE-2019-8131 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.56% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2019-8131?

Medium: CVSS 5.4 (v3.1, scored by NVD). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2019-8131?

magento/community-edition \>= 2.2.0, \< 2.2.10.

### Is there a fix for CVE-2019-8131?

Yes. Fixed in 2.2.10, 2.3.2-p1. Upgrade magento/community-edition to one of 2.2.10, 2.3.2-p1 (or later in the same release line).

### How do I check if I'm affected by CVE-2019-8131?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2019-8131>
- patch: <https://magento.com/security/patches/magento-2.3.3-and-2.2.10-security-update>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2019-8131.yaml>
- other: <https://github.com/magento/magento2>
- other: <https://web.archive.org/web/20220121051105/https://magento.com/security/patches/magento-2.3.3-and-2.2.10-security-update>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2019-8131>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-vx7m-v8v2-fhwm> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2019-8131> · JSON: <https://flawdb.com/api/v1/entries/CVE-2019-8131>
