{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4362",
 "modified": "2026-12-02T08:48:44Z",
 "published": "2026-12-02T08:48:44Z",
 "summary": "Modern Cart <= 1.1.2 - Unauthenticated Improper Input Validation via Slide-Out Add-to-Cart Attributes",
 "details": "The Modern Cart plugin for WordPress is vulnerable to Improper Input Validation via the 'attributes' parameter of the moderncart_add_to_cart AJAX action in all versions up to, and including, 1.1.2. This is due to the handler passing any posted attribute keys and values to WC_Cart::add_to_cart() without checking that the product is a variation or that the values belong to the parent product's variation attributes. This makes it possible for unauthenticated attackers to add arbitrary key/value pairs to their cart items, which WooCommerce saves as order line item meta at checkout. This includes underscore-prefixed meta that WooCommerce reads internally, such as _reduced_stock, which stops stock from being reduced for that line item. On older WooCommerce versions, it also makes it possible to add variable products without a valid variation, or with attribute values the variation does not allow.",
 "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": "modern-cart"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "0"
      },
      {
       "fixed": "1.1.3"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "all versions before 1.1.3"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4362/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/modern-cart/tags/1.1.3/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/modern-cart/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4362/",
  "cwe_ids": [
   "CWE-20"
  ],
  "vulnerability_type": "UNKNOWN",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
