Product Input Fields for WooCommerce <= 2.1.0 - Unauthenticated Reflected Cross-Site Scripting via Product Input Field Values
- ID
- WPSEC-2026-3851
- Plugin
- Product Input Fields for WooCommerce (product-input-fields-for-woocommerce)
- Affected
- from 2.0.0 before 2.2.0
- Remediation
- Update to 2.2.0 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-25
- Attack surface
- Product Input Fields for WooCommerce on WPSec AttackSurface
- Fix released
- Published
Description
The Product Input Fields for WooCommerce plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via Product Input Field values in all versions up to, and including, 2.1.0. This is due to the submitted field value, refilled from POST data, being inserted outside any quoted attribute in the HTML input tag. sanitize_text_field and esc_attr do not stop that, so attributes can be injected. This makes it possible for unauthenticated attackers to inject arbitrary web scripts into product pages that execute if they can successfully trick a user into performing an action such as submitting a crafted form. Exploitation requires the 'Refill Fields with Previous Input' setting to be stored as 'yes' or left unset, which is typical on sites upgraded from 1.x releases.
References
- https://wpsec.com/vuln/WPSEC-2026-3851/
- https://plugins.svn.wordpress.org/product-input-fields-for-woocommerce/tags/2.2.0/
- https://wordpress.org/plugins/product-input-fields-for-woocommerce/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS