Modern Cart <= 1.1.2 - Unauthenticated Improper Input Validation via Slide-Out Add-to-Cart Attributes
- ID
- WPSEC-2026-4362
- Plugin
- Modern Cart – WooCommerce Side Cart & Popup Cart (modern-cart)
- Affected
- all versions before 1.1.3
- Remediation
- Update to 1.1.3 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 Low · Affected versions Low among sites WPSec scans, 2026-12-02
- Attack surface
- Modern Cart on WPSec AttackSurface
- Fix released
- Published
Description
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.
References
- https://wpsec.com/vuln/WPSEC-2026-4362/
- https://plugins.svn.wordpress.org/modern-cart/tags/1.1.3/
- https://wordpress.org/plugins/modern-cart/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS