Article

953 Online Stores, Mostly Magento, Infected With Scanner-Evading JavaScript

E-commerce security company Sansec reports that an unknown attacker has infected 953 online stores, most of them running Magento, in a campaign active since July 2025. The attackers place a small piece of code in the store’s CMS blocks, the database entries Magento uses for content such as headers, footers and banners.

When a shopper visits, that code makes the browser contact the attacker’s server, which first checks whether the visitor is a real person or a security scanner. Scanners get nothing, which helps the infection stay hidden. One version stores its payload in the browser so it runs again even if the attacker’s domain goes offline. Sansec says the final payload is still unknown.

According to the report, 471 stores were injected through the PolyShell vulnerability (CVE-2026-48356), and another 102 had files uploaded through PolyShell or SessionReaper (CVE-2025-54236). In one case, a fully patched store was compromised through a rogue administrator account. Sansec advises auditing admin accounts and checking the cms_block and cms_page tables for unexpected content, keeping sites updated and enforcing strong passwords.

Why it matters for your business

If you run an online store on any platform, apply security patches promptly, review admin users regularly, and have your site’s content and database checked for injected scripts, since standard scanners may miss them.

Source: The Hacker News

Book a Free Consultation

Want to talk this through?

Book a short free consultation and we can look at your situation together.