{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-3851",
 "modified": "2026-11-25T08:44:02Z",
 "published": "2026-11-25T08:44:02Z",
 "summary": "Product Input Fields for WooCommerce <= 2.1.0 - Unauthenticated Reflected Cross-Site Scripting via Product Input Field Values",
 "details": "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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  }
 ],
 "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-3851/"
  },
  {
   "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-3851/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
