Magento payment transaction failed email caused by a fake PayPal Payflow response

If a Magento payment transaction failed email lands in your inbox every day for orders you can’t find, you’re not the only one. We got our first one on 1 December. The pattern is always the same: a guest customer, an empty cart, a total of 0.00, and an address full of code like {{depend ...}} or {{var ...}}.

These aren’t lost sales. A bot is sending fake PayPal responses to your store to test it for a flaw that lets it run code on your server. Below we explain how the fake response triggers that email, which patches fix the flaw, and a free module we wrote that stops the emails.

How the fake PayPal response triggers the Magento payment transaction failed email

Sansec, a security company that works mostly on Magento, named the attack StyleSmuggler. It’s tracked as CVE-2026-75650 with a score of 10.0, the highest there is. Sansec saw the first attacks on 4 September 2026.

Magento comes with PayPal’s Payflow Pro integration built in. That integration has two endpoints that accept a payment result from PayPal: the GraphQL mutation handlePayflowProResponse and the URL /paypal/transparent/response/. Both of them answer requests even if Payflow Pro is switched off in your admin.

The bot creates an empty guest cart and posts a fake “declined” PayPal response to one of them. Magento believes a payment failed and builds the failure email for the store owner. The bot has put Magento template code in the address fields, and on an unpatched store Magento runs that code while it builds the email. Sansec showed this is enough for the attacker to run their own PHP on the server.

Nobody has to open the email for this to work. It works even if the email is never delivered. The message in your inbox is a side effect you happen to see.

A real declined card sends the same email, so not every one is an attack. The fake ones stand out: guest checkout, nothing in the cart, 0.00, and curly-brace code where the street name should be.

Is your Magento version affected?

Sansec says Magento Open Source and Adobe Commerce from 2.4.4 up to 2.4.9 are affected. Adobe’s bulletin APSB26-146 lists Adobe Commerce 2.4.4 to 2.4.9 and Open Source 2.4.6 to 2.4.9. If your store is on 2.4.4 or later and you haven’t installed a patch since August 2026, assume it’s affected.

Patch first: Adobe hotfix VULN-39341

Adobe released hotfix VULN-39341 on 7 September 2026. Download the file for your Magento release from the bulletin and apply it with Composer, using Adobe’s guide to Composer patches. Adobe also asks you to rotate your encryption key afterwards.

Try it on a staging copy before the live store. On live, take a backup, switch on maintenance mode, and do it when traffic is low.

Then the October patch for BlockStrap

In October a researcher found a way past the September hotfix. Sansec calls it BlockStrap (CVE-2026-103849, also scored 10.0). Adobe fixed it on 13 October 2026 in bulletin APSB26-153, either inside the 2026-oct release or as a standalone patch.

  • Leave VULN-39341 installed. Sansec points out that the October patch doesn’t contain it.
  • Adobe’s public patches cover Open Source 2.4.7-p10, 2.4.8-p5 and 2.4.9. Older releases need an Adobe Commerce licence for the patch, or an upgrade.
  • To see whether the fix is in, run grep -c resolveDeferredDirectives vendor/magento/framework/Filter/Template.php from the Magento root. If it prints 0, the fix is missing.

Check whether anyone got in

If the emails started before you patched, look at the server. A patch stops new attacks. It doesn’t remove anything an attacker already left. From Sansec’s list, these are the things to check:

  • Processes running as the store’s user with names borrowed from the system, such as kworker, fc-cache or chronyd.
  • Cron jobs for the store’s user that nobody on your team added. An empty crontab -l isn’t proof, so read the cron spool file as well.
  • Hidden files in the store user’s cache folder and in /tmp.
  • Files with x_trace_ in their name under var/report, and any .php file under pub/media.
  • Outgoing connections to the IP addresses and domains in Sansec’s report.

If you find any of these, clean the server first. Then change every password and key the store uses: admin logins, the database, your PayPal and other payment API credentials, the mail service, and integration tokens. Sansec and Adobe both tell merchants to do this after a break-in. If you’d like a second pair of eyes, our Magento security audit covers these checks and missing patches.

Stop the fake PayPal emails with our free module

Once the store is patched, the fake responses can’t run code any more. The bots keep sending them anyway, and you keep getting the emails. If you don’t take payments through PayPal Payflow Pro, those two endpoints have no reason to answer at all.

So we wrote Magento 2 Payflow Guard. When Payflow Pro is off for a store view, the GraphQL mutation replies “This payment method is not available.” and /paypal/transparent/response/ returns a 404. Magento never records a failed payment, so no email goes out. If you do use Payflow Pro, nothing changes. Each blocked request is written to var/log/payflow_guard.log with the caller’s IP address, so you can see how often the bots come back.

It’s free and MIT licensed. Download it from GitHub or from its page on our site. Installation takes the usual composer require and setup:upgrade.

The module doesn’t fix CVE-2026-75650. It shuts one route the bots use and stops the emails. You still need both Adobe patches.

Frequently asked questions

Can my store be hacked if I never open the email?

Yes. The attacker’s code runs on your server while Magento builds the email. Whether you open it makes no difference.

I use PayPal Express Checkout, not Payflow Pro. Do I still need to patch?

Yes. The flaw is in Magento’s template engine, not in PayPal. The Payflow Pro endpoints are only the way in that the bots use. Our module only touches those two Payflow Pro endpoints, so PayPal Express Checkout keeps working with it installed.

Is every payment transaction failed email an attack?

No. A real declined card sends the same email. Look for guest orders with no products, a 0.00 total, and {{ }} code in the address.

Do I need the module if I’ve already patched?

You don’t have to install it. The patches fix the flaw. The module stops the daily emails and closes one more way in, which is useful if Payflow Pro isn’t one of your payment methods.

Want us to patch and check your store? Our Magento support plans start at $599 a month, or start with a Magento security audit. Starting prices in USD, final quote after a short call. Contact us.

Sources

    Need Magento expert help?

    We provide result-driven solutions to expand the competency level and productivity.

    Instant Help CenterAvailable!

    Monday to FridayResponse promised within 24 hours!

    After Black Friday: Recovering the Carts Shoppers Left Behind

    Load Comments

    Your email address will not be published. Required fields are marked *

    5 4 3 2 1