Critical vulnerability in Mirasvit Cache Warmer for Magento
by Sansec Forensics Team
Published in Threat Research − May 26, 2026
Sansec found an unauthenticated PHP object injection flaw in Mirasvit Cache Warmer, a popular Magento full-page cache extension. A single crafted cookie on any storefront page can lead to remote code execution. Mirasvit has shipped a fix.

Sansec discovered an unauthenticated PHP object injection vulnerability in Mirasvit Cache Warmer, a full-page cache extension for Magento and Adobe Commerce. Any storefront request carrying a crafted CacheWarmer cookie reaches PHP's native unserialize() on attacker-controlled data, with no authentication, no admin session and no config toggle required. With a suitable gadget chain, this leads to remote code execution.
Mirasvit released a patched version (1.11.12) on May 25, 2026 and is asking all customers to update. Sansec has requested a CVE for this issue.
Sansec Shield customers were protected on April 24, 2026, the day we found the flaw.
How the attack works
Mirasvit Cache Warmer pre-populates Magento's full-page cache for every "vary" state of a page (currency, customer group, and so on). To render a page as a specific visitor, the warmer packs the target session state into a cookie and sends it with each crawl request. On the server, a plugin reads that cookie and switches currency and customer session to match before rendering.
The plugin runs on every storefront request, not just on warmer traffic.
The extension deserializes part of the cookie value with PHP's native unserialize(), without restricting which classes may be instantiated. Because that value comes straight from the client, an attacker controls the objects PHP reconstructs. This is PHP object injection (CWE-502). Combined with a gadget chain from classes that Magento and its dependencies already ship, object injection escalates to remote code execution.
Who is affected
All Mirasvit Cache Warmer versions before 1.11.12 are vulnerable. The extension is bundled with several Mirasvit packages, so many merchants run it without having installed it directly.
Sansec scans found roughly 6,000 stores running Mirasvit extensions. Real numbers are likely higher, since content delivery networks such as Cloudflare hide many installs from our fingerprinting.
Detection
The attack leaves a clear request signature. Look for storefront requests that carry a CacheWarmer cookie whose value contains the marker CacheWarmer: followed by a base64 string. Serialized PHP objects base64-encode to values starting with Tz, Qz or YT, so a CacheWarmer cookie value matching CacheWarmer:(Tz|Qz|YT) is a strong indicator of an exploitation attempt.
Recommendations
- Update now: Upgrade Mirasvit Cache Warmer to 1.11.12 or later. See the Mirasvit changelog.
- Block attacks: Deploy Sansec Shield to block exploitation attempts in real time, including on stores that cannot patch immediately.
- Scan for compromise: Run eComscan to detect webshells, backdoors and other malware that an attacker may have planted.
- Check web-accessible directories: Review
pub/and other web-reachable folders for unexpected PHP files.
Timeline
| Date | Event |
|---|---|
| April 24, 2026 | Sansec discovers the vulnerability |
| April 24, 2026 | Sansec Shield rule deployed |
| May 21, 2026 | Mirasvit notified |
| May 25, 2026 | Mirasvit releases patched version 1.11.12 |
| May 26, 2026 | This advisory published |
Mirasvit responded fast, shipping a fix within days of our report. Merchants should update without delay: the flaw needs no authentication, fires on ordinary storefront traffic, and the request signature is trivial for attackers to automate once the patch reveals the fix.
Read more
In this article
Protect your store now!
Block all known Magento attacks, while you schedule the latest critical patch until a convenient moment. No more downtime and instability from rushed patching.
Get Sansec ShieldScan your store now
for malware & vulnerabilities
eComscan is the most thorough security scanner for Magento, Adobe Commerce, Shopware, WooCommerce and many more.
Learn more