{
 "id": "WPSEC-2026-3974",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3974/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3974/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3974/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-3974.json",
 "title": "PDF Invoices & Packing Slips for WooCommerce <= 6.0.0 - Authenticated (Shop Manager+) Path Traversal to Local File Inclusion via PDF Template Path Setting",
 "description": "The PDF Invoices & Packing Slips for WooCommerce plugin for WordPress is vulnerable to Path Traversal leading to Local File Inclusion via the PDF template path setting ('template_path'), which can be saved through the settings form or a settings import, or supplied in settings preview data, in all versions up to, and including, 6.0.0. This is due to the stored template path not being validated against the installed templates: '../' sequences and stream wrappers such as phar:// are accepted, and the template files in that location (such as template-functions.php and invoice.php) are then included with PHP's include. This makes it possible for authenticated attackers who can manage the plugin's settings, which shop managers can do by default, to include and run PHP files from arbitrary directories on the server, or from an uploaded archive through the phar:// wrapper. This can lead to remote code execution.",
 "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": "LFI",
 "cwe": [
  "CWE-22"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 7.2,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
  "severity": "High"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.4.7",
    "from_inclusive": true,
    "to": "6.0.1",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.4.7 before 6.0.1"
  ]
 },
 "introduced_in": "1.4.7",
 "fixed_in": "6.0.1",
 "remediation": "Update to 6.0.1 or later.",
 "fix_released": "2026-11-25T12:11:38+00:00",
 "published": "2026-11-26T12:46:36+00:00",
 "updated": "2026-11-26T12:03:37.020735+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-3974/",
  "https://plugins.svn.wordpress.org/woocommerce-pdf-invoices-packing-slips/tags/6.0.1/",
  "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": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-11-26"
 }
}