# Variation Swatches for WooCommerce by CartFlows <= 1.0.14 - Unauthenticated Order Item Meta Injection via AJAX Add to Cart

- **ID:** WPSEC-2026-4353
- **Plugin:** Variation Swatches for WooCommerce – Color, Image & Size Swatches (`variation-swatches-woo`), https://wordpress.org/plugins/variation-swatches-woo/
- **Affected versions:** all versions before 1.0.15
- **Fixed in:** 1.0.15 (Update to 1.0.15 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-20
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-02)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/variation-swatches-woo
- **Fix released:** 2026-12-01
- **Published:** 2026-12-02
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4353/

## Description

The Variation Swatches for WooCommerce plugin for WordPress is vulnerable to order item meta injection in all versions up to, and including, 1.0.14. This is due to the shop-page AJAX add-to-cart handler passing a user-supplied 'variation' array with arbitrary keys to the cart for any product, including simple products, for which WooCommerce does not check variation attributes. This makes it possible for unauthenticated attackers to add arbitrary meta keys and values to the line items of their own orders, including internal keys such as '_reduced_stock', which stops the order from reducing the product's stock and makes a later cancellation add the injected quantity to it.

## References

- https://wpsec.com/vuln/WPSEC-2026-4353/
- https://plugins.svn.wordpress.org/variation-swatches-woo/tags/1.0.15/
- https://wordpress.org/plugins/variation-swatches-woo/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4353/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
