{
 "id": "WPSEC-2026-4266",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4266/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4266/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4266/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4266.json",
 "title": "WPC AJAX Add to Cart for WooCommerce <= 2.2.7 - Unauthenticated Improper Input Validation to Cart and Order Item Meta Injection via 'variation' Parameter",
 "description": "The WPC AJAX Add to Cart for WooCommerce plugin for WordPress is vulnerable to Improper Input Validation via the 'variation' parameter of the public AJAX add-to-cart handler (wc-ajax=wooaa_add_to_cart) in all versions up to, and including, 2.2.7. This is due to the handler accepting arbitrary attribute keys and values from the request and passing them to the cart for any product type, not only for variable products, without checking them against the attributes the product defines. WooCommerce validates this data only for variations, so on simple products the values are stored in the cart item and copied into order item meta at checkout. This makes it possible for unauthenticated attackers to attach arbitrary plain-text meta to the line items of orders they place, including underscore-prefixed meta keys that WooCommerce uses internally, such as its stock-tracking keys. This can stop stock from being reduced for the purchased items, or inflate stock levels when the order is later cancelled or fails.",
 "plugin": {
  "slug": "wpc-ajax-add-to-cart",
  "name": "WPC AJAX Add to Cart for WooCommerce",
  "full_name": "WPC AJAX Add to Cart for WooCommerce",
  "wordpress_org": "https://wordpress.org/plugins/wpc-ajax-add-to-cart/",
  "advisories_url": "https://wpsec.com/vuln/plugin/wpc-ajax-add-to-cart/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/wpc-ajax-add-to-cart"
 },
 "type": "UNKNOWN",
 "cwe": [
  "CWE-20"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.3,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.3.9",
    "from_inclusive": true,
    "to": "2.2.8",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.3.9 before 2.2.8"
  ]
 },
 "introduced_in": "1.3.9",
 "fixed_in": "2.2.8",
 "remediation": "Update to 2.2.8 or later.",
 "fix_released": "2026-11-30T04:15:22+00:00",
 "published": "2026-12-01T04:42:34+00:00",
 "updated": "2026-11-30T07:54:11.667752+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4266/",
  "https://plugins.svn.wordpress.org/wpc-ajax-add-to-cart/tags/2.2.8/",
  "https://wordpress.org/plugins/wpc-ajax-add-to-cart/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/wpc-ajax-add-to-cart",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-11-30"
 }
}