{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-3850",
 "modified": "2026-11-25T08:44:02Z",
 "published": "2026-11-25T08:44:02Z",
 "summary": "Product Input Fields for WooCommerce <= 2.1.0 - Unauthenticated Arbitrary File Upload via File-type Product Input Field",
 "details": "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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "product-input-fields-for-woocommerce"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "2.0.0"
      },
      {
       "fixed": "2.2.0"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 2.0.0 before 2.2.0"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-3850/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/product-input-fields-for-woocommerce/tags/2.2.0/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/product-input-fields-for-woocommerce/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-3850/",
  "cwe_ids": [
   "CWE-434"
  ],
  "vulnerability_type": "UPLOAD",
  "severity": "High",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
