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

Medium 5.3 CWE-20Fixed in 1.0.15
ID
WPSEC-2026-4353
Plugin
Variation Swatches for WooCommerce – Color, Image & Size Swatches (variation-swatches-woo)
Affected
all versions before 1.0.15
Remediation
Update to 1.0.15 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-20
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-12-02
Attack surface
Variation Swatches for WooCommerce by CartFlows on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0