{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4013",
 "modified": "2026-11-26T17:45:12Z",
 "published": "2026-11-26T17:45:12Z",
 "summary": "Razorpay for WooCommerce <= 4.8.9 - Unauthenticated Gift Card Double Spend via Magic Checkout",
 "details": "The Razorpay for WooCommerce plugin for WordPress is vulnerable to a gift card double spend in Magic Checkout (1cc) orders in all versions up to, and including, 4.8.9. The cause is that a gift card's balance is checked only when the card is applied, and is not checked again after payment. The post-payment check in handlePromotions() is written so that it practically never fails, so the card is debited, even below zero, and the order is completed. In addition, an exception during the order update before promotions are handled still leads to the order being completed with no gift card debit. This makes it possible for unauthenticated attackers, such as guest shoppers holding a gift card, to apply the same balance to several Magic Checkout orders and have all of them completed, getting goods worth more than the card's value. Exploitation requires Magic Checkout with a supported gift card plugin (YITH WooCommerce Gift Cards or PW WooCommerce Gift Cards).",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "woo-razorpay"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "4.4.0"
      },
      {
       "fixed": "4.8.10"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 4.4.0 before 4.8.10"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4013/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/woo-razorpay/tags/4.8.10/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/woo-razorpay/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4013/",
  "cwe_ids": [
   "CWE-367"
  ],
  "vulnerability_type": "BYPASS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
