Description
Calling setCurrentStore() modifies a shared singleton state. In async contexts
(message queue consumers, parallel processes), this can cause one process to affect another's
store context, leading to incorrect configuration, prices, or content being returned.
Affected Code
- Magento\Store\Model\StoreManager::setCurrentStore()
- All code using $storeManager->getStore() after modification