GHSA-jqr7-5h7r-ch8p: Shopware/shopware Cross-Site Scripting Vulnerability

MODERATE
CVSS 6.1
CWE-79
Published
Advisory Summary

GHSA-jqr7-5h7r-ch8p is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Shopware/shopware libraries in the Packagist ecosystem. The issue involves shopware non-persistent xss in the frontend. Remediation is available by upgrading affected packages to version 5.3.7.

GHSA-jqr7-5h7r-ch8p at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jqr7-5h7r-ch8p
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Shopware/shopware
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-jqr7-5h7r-ch8p

To remediate this vulnerability, upgrade all affected Shopware/shopware dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

shopware/shopware fixed: 5.3.7
Upgrade shopware/shopware to 5.3.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for shopware/shopware

How to Check if You Are Affected

To determine whether your application is affected by GHSA-jqr7-5h7r-ch8p, inspect your project dependencies for Shopware/shopware:

inspect dependencies for shopware/shopware

Analyze the terminal output to locate any version of Shopware/shopware in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.3.7), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Shopware/shopware, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A non-persistent Cross-Site Scripting (XSS) vulnerability has been identified in the Shopware eCommerce platform within the frontend. This vulnerability may allow an attacker to inject and execute malicious scripts in the context of a victim's web browser.

GHSA-jqr7-5h7r-ch8p Affected Shopware/shopware Versions

1 component(s)
Fixed Versions:
5.3.7
Product / Package Ecosystem Affected Versions Fixed Version
shopware/shopware
Packagist
≥ 5.2.0
< 5.3.7
5.3.7

References

Frequently Asked Questions

What is GHSA-jqr7-5h7r-ch8p?
GHSA-jqr7-5h7r-ch8p is a security vulnerability in Shopware/shopware involving Shopware Non-Persistent XSS in the Frontend under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Shopware/shopware versions are affected?
Affected versions include releases prior to 5.3.7 across affected packages: shopware/shopware.
What version fixes GHSA-jqr7-5h7r-ch8p?
Upgrading to 5.3.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is shopware/shopware affected?
Yes, shopware/shopware is affected in releases prior to 5.3.7. Upgrade your dependency to 5.3.7 or later.
What is the CVSS score of GHSA-jqr7-5h7r-ch8p?
GHSA-jqr7-5h7r-ch8p has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-jqr7-5h7r-ch8p?
GHSA-jqr7-5h7r-ch8p is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for GHSA-jqr7-5h7r-ch8p?
Run the dependency tree command: 'inspect dependencies for shopware/shopware'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jqr7-5h7r-ch8p",
  "modified" : "2024-05-21T20:42:46Z",
  "published" : "2024-05-21T20:42:46Z",
  "aliases" : [ ],
  "summary" : "Shopware Non-Persistent XSS in the Frontend",
  "details" : "A non-persistent Cross-Site Scripting (XSS) vulnerability has been identified in the Shopware eCommerce platform within the frontend. This vulnerability may allow an attacker to inject and execute malicious scripts in the context of a victim's web browser.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "shopware/shopware"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.2.0"
      }, {
        "fixed" : "5.3.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/shopware5/shopware/commit/54461aa651566dc2701b873fe6bd94589604751b"
  }, {
    "type" : "WEB",
    "url" : "https://community.shopware.com/_detail_2048.html"
  }, {
    "type" : "WEB",
    "url" : "https://docs.shopware.com/en/shopware-5-en/security-updates/security-update-01-2018?category=shopware-5-en/security-updates"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/shopware/shopware/2018-01-22.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/shopware5/shopware"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-21T20:42:46Z",
    "nvd_published_at" : null
  }
}