Magecart Campaign Hides Magento Card Skimmer in 1x1 SVG Images
Malware Intelligence · 2 sources · Updated 5mo ago · First seen Apr 8, 2026

A large Magecart campaign compromised nearly 100 Magento and Adobe Commerce stores by hiding a full credit-card skimmer inside a 1x1-pixel SVG embedded directly in checkout page HTML. Researchers said the malware stores its payload in the SVG onload handler, decodes it with atob(), and runs it via setTimeout, allowing it to evade scanners that typically look for externally loaded scripts. When shoppers click checkout, the skimmer displays a convincing fake "Secure Checkout" overlay that captures billing and payment details before validating card numbers with the Luhn algorithm.
The stolen data is exfiltrated as XOR-encrypted, base64-obfuscated JSON to attacker-controlled infrastructure, in some cases disguised as Facebook analytics traffic. Sansec linked the infections to exploitation of the PolyShell vulnerability, which affects Magento Open Source and Adobe Commerce stable version 2 deployments and can enable unauthenticated code execution and account takeover. Defenders were urged to hunt for hidden SVG tags and suspicious onload code, check for the _mgx_cv localStorage key, and block outbound traffic to the identified attacker infrastructure, including domains resolving to 23.137.249.67 hosted by IncogNet in the Netherlands.
Why it matters
Impact assessment
This campaign directly affects Magento Open Source and Adobe Commerce stable version 2 e-commerce operators, especially online retailers processing payment cards through web checkout flows. The impact is high because the malware steals payment card and billing data at the point of entry, creating immediate fraud exposure, PCI compliance risk, customer notification burden, and reputational damage.
The scope is broad rather than isolated: researchers identified 99 compromised stores and linked the activity to ongoing PolyShell exploitation against unpatched environments. Exploitation in the wild is confirmed, and the skimmer’s inline SVG delivery increases dwell time by evading scanners that focus on external JavaScript references.
Supporting facts
- A Magecart campaign compromised 99 Magento e-commerce stores.
- Affected platforms: Magento Open Source and Adobe Commerce stable version 2.
- Likely initial access: exploitation of the PolyShell vulnerability.
- PolyShell can enable unauthenticated code execution and account takeover.
- Victims: online shoppers entering billing and payment data during checkout.
- Business impacts: payment card theft, customer data exposure, fraud losses, incident response costs, possible PCI and regulatory consequences.
- Scope indicators: nearly 100 confirmed stores; researchers reported more than half of vulnerable stores were targeted in PolyShell attacks.
- Exploitation status: active campaign discovered April 7, 2026; infections tied to live attacker infrastructure.


