{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4049",
 "modified": "2026-11-27T03:42:41Z",
 "published": "2026-11-27T03:42:41Z",
 "summary": "Advanced Coupons for WooCommerce Coupons <= 4.7.6.1 - Unauthenticated Insecure Direct Object Reference to Coupon Application via 'coupon' Query Parameter",
 "details": "The Advanced Coupons for WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference via the apply-coupon-by-query-string feature in all versions up to, and including, 4.7.6.1. This is due to the 'coupon' query parameter being passed directly to the coupon object, which reads a numeric value as a coupon ID, and to a missing check of the coupon's 'disable URL coupon' setting. This makes it possible for unauthenticated attackers to apply published coupons whose codes they do not know to their cart by enumerating coupon IDs, including coupons that are set not to be applied through a URL, and get discounts they are not entitled to. Exploitation requires the 'apply coupon via query string' setting to be enabled.",
 "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": "advanced-coupons-for-woocommerce-free"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "4.5.6"
      },
      {
       "fixed": "4.7.7"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 4.5.6 before 4.7.7"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4049/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/advanced-coupons-for-woocommerce-free/tags/4.7.7/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/advanced-coupons-for-woocommerce-free/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4049/",
  "cwe_ids": [
   "CWE-639"
  ],
  "vulnerability_type": "IDOR",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
