GHSA-5297-wrrp-rcj7
Shopware Improper Session Handling in store-api account logout
Quick fix
GHSA-5297-wrrp-rcj7 — shopware/core: upgrade to the fixed version with the command below.
composer require shopware/core:^6.5.8.8Details
### 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
6.3.5.0Fixed in: 6.5.8.8composer require shopware/core:^6.5.8.86.3.5.0Fixed in: 6.5.8.8composer require shopware/platform:^6.5.8.86.6.0.0-rc1Fixed in: 6.6.1.0composer require shopware/core:^6.6.1.06.6.0.0-rc1Fixed in: 6.6.1.0composer require shopware/platform:^6.6.1.0References
- https://github.com/shopware/shopware/security/advisories/GHSA-5297-wrrp-rcj7[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2024-31447[ADVISORY]
- https://github.com/shopware/shopware/commit/5cc84ddd817ad0c1d07f9b3c79ab346d50514a77[WEB]
- https://github.com/shopware/shopware/commit/d29775aa758f70d08e0c5999795c7c26d230e7d3[WEB]
- https://github.com/shopware/shopware[PACKAGE]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/shopware/core"]}'