Update Product Input Fields for WooCommerce: a file upload flaw lets any visitor run code on your shop
Product Input Fields for WooCommerce 2.1.0 and earlier lets any visitor upload an executable file through a product page. Version 2.2.0, released 24 November 2026, closes the flaw — update now.

Affects
- Product Input Fields for WooCommerce
- WooCommerce
- WordPress
Tracked as
CVE-2026-104998Product Input Fields for WooCommerce · CVSS 9.8
A flaw in the Product Input Fields for WooCommerce plugin lets any visitor to a shop upload a file that the shop’s server then runs as code. The flaw, catalogued as CVE-2026-104998 and scored 9.8 out of 10, affects version 2.1.0 and earlier. Version 2.2.0, released on 24 November 2026, closes it. About 4,000 shops run the plugin, according to WordPress.org — and only the shops that let customers attach files to a product are exposed.

What happened
Wordfence reported the flaw, and the National Vulnerability Database published it on 26 November 2026 with a severity score of 9.8 out of 10. The plugin lets shop owners add extra fields to a product page: a text box for a gift message, a date picker, or a file upload so a customer can send a photo to be printed on a mug, for example. When a customer attaches a file and adds the product to the cart, the plugin’s file-handling code saves the upload.
That code checked only the file type the visitor’s browser claimed the file was, and it never checked what the file really contained. It then saved the file under the exact name the visitor gave it, in a temporary folder with no protection against files being opened or run from the web. A visitor could therefore send a script disguised as a picture, then open its address in a browser and have the shop’s server run it. No account, no login and no purchase were needed.
The attack only works where a shop has set up at least one product with a File-type field and turned on its “Show thumbnail” option. The same 2.2.0 update also closes a separate flaw that let an unauthenticated visitor run script code on product pages through field values.

What this means for you
If you run a WooCommerce shop with this plugin, check two things: the plugin version, and whether any product has a File-type field with “Show thumbnail” turned on. If both apply, your shop could already have been used to run an attacker’s code, which can mean stolen customer details, changed prices or pages, or the shop being used to attack others.
The exposure is narrow. Only about 4,000 shops run the plugin, and only the ones that collect file uploads with thumbnails switched on are reachable this way. If your shop never asks customers to upload files, this flaw cannot touch it. But if it does, treat the update as urgent: the flaw needs no login, and the details are now public.
What to do
- Update the plugin to version 2.2.0 or later. In the WordPress admin, go to Dashboard, then Updates, find Product Input Fields for WooCommerce, and update it. The plugin page is at wordpress.org/plugins/product-input-fields-for-woocommerce.
- Check the plugin’s temporary upload folder, named pif_temp, for files you do not recognise, and delete anything suspicious. If you are unsure where it sits, ask your host to look.
- If the update has to wait, turn off “Show thumbnail” on every File-type field first: open each affected product, find its Product Input Fields, and switch the option off. Then ask your host to block script execution inside the pif_temp folder.
- After updating, look through recent orders for file uploads you do not recognise, and check the shop’s pages and prices for changes you did not make. If anything looks wrong, ask your host to check the server logs for visits to uploaded files.
Sources
- CVE-2026-104998 DetailNIST National Vulnerability Database
- Product Input Fields for WooCommerceWordPress.org


