{
 "id": "WPSEC-2026-1302",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1302/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1302/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1302/index.md",
 "title": "PDF Invoices & Packing Slips for WooCommerce <= 5.16.4 - Unauthenticated Stored Cross-Site Scripting via Order Address, Custom Field, and Note Values",
 "description": "The PDF Invoices & Packing Slips for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via order billing and shipping addresses, custom fields, shipping notes, order notes and item meta in all versions up to, and including, 5.16.4, due to the rendered document HTML being passed through htmlspecialchars_decode() after sanitization, which turns HTML-entity-encoded customer input back into live markup. This makes it possible for unauthenticated attackers who can place orders (for example through guest checkout) to inject arbitrary web scripts that run when a store manager or administrator views the generated document in HTML output mode.",
 "plugin": {
  "slug": "woocommerce-pdf-invoices-packing-slips",
  "name": "PDF Invoices & Packing Slips for WooCommerce",
  "full_name": "PDF Invoices & Packing Slips for WooCommerce",
  "wordpress_org": "https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/",
  "advisories_url": "https://wpsec.com/vuln/plugin/woocommerce-pdf-invoices-packing-slips/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/woocommerce-pdf-invoices-packing-slips"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.4,
  "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "5.16.5",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 5.16.5"
  ]
 },
 "introduced_in": null,
 "fixed_in": "5.16.5",
 "remediation": "Update to 5.16.5 or later.",
 "fix_released": "2026-10-20T07:20:17+00:00",
 "published": "2026-10-21T10:43:36+00:00",
 "updated": "2026-10-21T10:35:16.270154+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1302/",
  "https://plugins.svn.wordpress.org/woocommerce-pdf-invoices-packing-slips/tags/5.16.5/",
  "https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/woocommerce-pdf-invoices-packing-slips",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-10-21"
 }
}