Shopware Improper Session Handling in store-api account logout
Published 8 Apr 2024 · Updated 10 Sept 2026
Affected packages
- Affected
- >=6.3.5.0 <6.5.8.8
- Fixed in
- 6.5.8.8
composer require shopware/core:^6.5.8.8- Affected
- >=6.3.5.0 <6.5.8.8
- Fixed in
- 6.5.8.8
composer require shopware/platform:^6.5.8.8- Affected
- >=6.6.0.0-rc1 <6.6.1.0
- Fixed in
- 6.6.1.0
composer require shopware/core:^6.6.1.0- Affected
- >=6.6.0.0-rc1 <6.6.1.0
- Fixed in
- 6.6.1.0
composer require shopware/platform:^6.6.1.0Details
Impact
When a authentificated request is made to POST /store-api/account/logout, the cart will be cleared, but the User won't be logged out. This affects only the direct store-api usage, as the PHP Storefront listens additionally on CustomerLogoutEvent and invalidates the session additionally.
Patches
The problem has been fixed with Shopware 6.6.1.0 and 6.5.8.8.
Workarounds
When you are not able to update, you can install the latest version of the Shopware Security Plugin.
Is GHSA-5297-wrrp-rcj7 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected shopware/core, and gives you the command that fixes it.
References
- Linkgithub.com/shopware/shopware/security/advisories/GHSA-5297-wrrp-rcj7
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-31447
- Linkgithub.com/shopware/shopware/commit/5cc84ddd817ad0c1d07f9b3c79ab346d50514a77
- Linkgithub.com/shopware/shopware/commit/d29775aa758f70d08e0c5999795c7c26d230e7d3
- Packagegithub.com/shopware/shopware
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.