# Product Input Fields for WooCommerce <= 2.1.0 - Unauthenticated Arbitrary File Upload via File-type Product Input Field

- **ID:** WPSEC-2026-3850
- **Plugin:** Product Input Fields for WooCommerce (`product-input-fields-for-woocommerce`), https://wordpress.org/plugins/product-input-fields-for-woocommerce/
- **Affected versions:** from 2.0.0 before 2.2.0
- **Fixed in:** 2.2.0 (Update to 2.2.0 or later.)
- **Severity:** High 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-434
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-25)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/product-input-fields-for-woocommerce
- **Fix released:** 2026-11-24
- **Published:** 2026-11-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3850/

## Description

The Product Input Fields for WooCommerce plugin for WordPress is vulnerable to arbitrary file uploads via File-type Product Input Fields in all versions up to, and including, 2.1.0. This is due to the cart thumbnail preview deciding whether an upload is an image only from the client-supplied MIME type, then copying the file into the publicly accessible wp-content/uploads/pif_temp directory under the client-supplied filename. This makes it possible for unauthenticated attackers to upload arbitrary files, such as PHP scripts, to a web-accessible location on the affected site's server, which may make remote code execution possible. Exploitation requires a product with a file input field that has thumbnail display enabled and whose accepted file types setting does not restrict the uploaded extension.

## References

- https://wpsec.com/vuln/WPSEC-2026-3850/
- https://plugins.svn.wordpress.org/product-input-fields-for-woocommerce/tags/2.2.0/
- https://wordpress.org/plugins/product-input-fields-for-woocommerce/

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

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.
