{"id":15196,"date":"2026-12-02T17:13:17","date_gmt":"2026-12-02T11:43:17","guid":{"rendered":"https:\/\/www.mconnectmedia.com\/blog\/magento-payment-transaction-failed-email\/"},"modified":"2026-12-02T17:13:17","modified_gmt":"2026-12-02T11:43:17","slug":"magento-payment-transaction-failed-email","status":"publish","type":"post","link":"https:\/\/www.mconnectmedia.com\/blog\/magento-payment-transaction-failed-email\/","title":{"rendered":"Getting a Magento Payment Transaction Failed Email Every Day? It&#8217;s a Fake PayPal Response"},"content":{"rendered":"\n<p>If a Magento payment transaction failed email lands in your inbox every day for orders you can&#8217;t find, you&#8217;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 <code>{{depend ...}}<\/code> or <code>{{var ...}}<\/code>.<\/p>\n\n\n\n<p>These aren&#8217;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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the fake PayPal response triggers the Magento payment transaction failed email<\/h2>\n\n\n\n<p>Sansec, a security company that works mostly on Magento, named the attack <a href=\"https:\/\/sansec.io\/research\/stylesmuggler-0day\" target=\"_blank\" rel=\"noopener\">StyleSmuggler<\/a>. It&#8217;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.<\/p>\n\n\n\n<p>Magento comes with PayPal&#8217;s Payflow Pro integration built in. That integration has two endpoints that accept a payment result from PayPal: the GraphQL mutation <code>handlePayflowProResponse<\/code> and the URL <code>\/paypal\/transparent\/response\/<\/code>. Both of them answer requests even if Payflow Pro is switched off in your admin.<\/p>\n\n\n\n<p>The bot creates an empty guest cart and posts a fake &#8220;declined&#8221; 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.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Is your Magento version affected?<\/h2>\n\n\n\n<p>Sansec says Magento Open Source and Adobe Commerce from 2.4.4 up to 2.4.9 are affected. Adobe&#8217;s <a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-knowledge-base\/kb\/announcements\/commerce-apsb26-146\" target=\"_blank\" rel=\"noopener\">bulletin APSB26-146<\/a> 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&#8217;t installed a patch since August 2026, assume it&#8217;s affected.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Patch first: Adobe hotfix VULN-39341<\/h2>\n\n\n\n<p>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 <a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-knowledge-base\/kb\/how-to\/how-to-apply-a-composer-patch-provided-by-magento\" target=\"_blank\" rel=\"noopener\">Adobe&#8217;s guide to Composer patches<\/a>. Adobe also asks you to rotate your encryption key afterwards.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Then the October patch for BlockStrap<\/h2>\n\n\n\n<p>In October a researcher found a way past the September hotfix. Sansec calls it <a href=\"https:\/\/sansec.io\/research\/blockstrap-magento-rce\" target=\"_blank\" rel=\"noopener\">BlockStrap<\/a> (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.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Leave VULN-39341 installed. Sansec points out that the October patch doesn&#8217;t contain it.<\/li><li>Adobe&#8217;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.<\/li><li>To see whether the fix is in, run <code>grep -c resolveDeferredDirectives vendor\/magento\/framework\/Filter\/Template.php<\/code> from the Magento root. If it prints 0, the fix is missing.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Check whether anyone got in<\/h2>\n\n\n\n<p>If the emails started before you patched, look at the server. A patch stops new attacks. It doesn&#8217;t remove anything an attacker already left. From Sansec&#8217;s list, these are the things to check:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Processes running as the store&#8217;s user with names borrowed from the system, such as <code>kworker<\/code>, <code>fc-cache<\/code> or <code>chronyd<\/code>.<\/li><li>Cron jobs for the store&#8217;s user that nobody on your team added. An empty <code>crontab -l<\/code> isn&#8217;t proof, so read the cron spool file as well.<\/li><li>Hidden files in the store user&#8217;s cache folder and in <code>\/tmp<\/code>.<\/li><li>Files with <code>x_trace_<\/code> in their name under <code>var\/report<\/code>, and any <code>.php<\/code> file under <code>pub\/media<\/code>.<\/li><li>Outgoing connections to the IP addresses and domains in Sansec&#8217;s report.<\/li><\/ul>\n\n\n\n<p>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&#8217;d like a second pair of eyes, our <a href=\"https:\/\/www.mconnectmedia.com\/magento-security-audit\">Magento security audit<\/a> covers these checks and missing patches.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stop the fake PayPal emails with our free module<\/h2>\n\n\n\n<p>Once the store is patched, the fake responses can&#8217;t run code any more. The bots keep sending them anyway, and you keep getting the emails. If you don&#8217;t take payments through PayPal Payflow Pro, those two endpoints have no reason to answer at all.<\/p>\n\n\n\n<p>So we wrote <strong>Magento 2 Payflow Guard<\/strong>. When Payflow Pro is off for a store view, the GraphQL mutation replies &#8220;This payment method is not available.&#8221; and <code>\/paypal\/transparent\/response\/<\/code> 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 <code>var\/log\/payflow_guard.log<\/code> with the caller&#8217;s IP address, so you can see how often the bots come back.<\/p>\n\n\n\n<p>It&#8217;s free and MIT licensed. Download it from <a href=\"https:\/\/github.com\/mcsventures\/magento2-payflow-guard\" target=\"_blank\" rel=\"noopener\">GitHub<\/a> or from <a href=\"https:\/\/www.mconnectmedia.com\/magento-2-payflow-guard.html\">its page on our site<\/a>. Installation takes the usual <code>composer require<\/code> and <code>setup:upgrade<\/code>.<\/p>\n\n\n\n<p>The module doesn&#8217;t fix CVE-2026-75650. It shuts one route the bots use and stops the emails. You still need both Adobe patches.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Can my store be hacked if I never open the email?<\/h3>\n\n\n\n<p>Yes. The attacker&#8217;s code runs on your server while Magento builds the email. Whether you open it makes no difference.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">I use PayPal Express Checkout, not Payflow Pro. Do I still need to patch?<\/h3>\n\n\n\n<p>Yes. The flaw is in Magento&#8217;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.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is every payment transaction failed email an attack?<\/h3>\n\n\n\n<p>No. A real declined card sends the same email. Look for guest orders with no products, a 0.00 total, and <code>{{ }}<\/code> code in the address.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need the module if I&#8217;ve already patched?<\/h3>\n\n\n\n<p>You don&#8217;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&#8217;t one of your payment methods.<\/p>\n\n\n\n<p><strong>Want us to patch and check your store? Our <a href=\"https:\/\/www.mconnectmedia.com\/magento-support-services\">Magento support plans<\/a> start at $599 a month, or start with a <a href=\"https:\/\/www.mconnectmedia.com\/magento-security-audit\">Magento security audit<\/a>. Starting prices in USD, final quote after a short call. <a href=\"https:\/\/www.mconnectmedia.com\/contact\">Contact us<\/a>.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sources<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/sansec.io\/research\/stylesmuggler-0day\" target=\"_blank\" rel=\"noopener\">Sansec: StyleSmuggler (CVE-2026-75650)<\/a><\/li><li><a href=\"https:\/\/sansec.io\/research\/blockstrap-magento-rce\" target=\"_blank\" rel=\"noopener\">Sansec: BlockStrap (CVE-2026-103849)<\/a><\/li><li><a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-knowledge-base\/kb\/announcements\/commerce-apsb26-146\" target=\"_blank\" rel=\"noopener\">Adobe: APSB26-146 security update<\/a><\/li><li><a href=\"https:\/\/experienceleague.adobe.com\/en\/docs\/commerce-knowledge-base\/kb\/how-to\/how-to-apply-a-composer-patch-provided-by-magento\" target=\"_blank\" rel=\"noopener\">Adobe: How to apply a Composer patch<\/a><\/li><li><a href=\"https:\/\/github.com\/mcsventures\/magento2-payflow-guard\" target=\"_blank\" rel=\"noopener\">Magento 2 Payflow Guard on GitHub<\/a><\/li><\/ul>\n\n","protected":false},"excerpt":{"rendered":"<p>If a Magento payment transaction failed email lands in your inbox every day for orders you can&#8217;t find, you&#8217;re not the only one. We got<\/p>\n","protected":false},"author":1,"featured_media":15207,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[2601,2572],"tags":[2626,138,1676,722],"class_list":["post-15196","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-extensions","category-magento-security","tag-extensions","tag-magento","tag-paypal","tag-security"],"_links":{"self":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts\/15196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/comments?post=15196"}],"version-history":[{"count":0,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/posts\/15196\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/media\/15207"}],"wp:attachment":[{"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/media?parent=15196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/categories?post=15196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mconnectmedia.com\/blog\/wp-json\/wp\/v2\/tags?post=15196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}