PDF Invoices & Packing Slips for WooCommerce <= 6.0.0 - Authenticated (Shop Manager+) Path Traversal to Local File Inclusion via PDF Template Path Setting

High 7.2 CWE-22Fixed in 6.0.1
ID
WPSEC-2026-3974
Plugin
PDF Invoices & Packing Slips for WooCommerce (woocommerce-pdf-invoices-packing-slips)
Affected
from 1.4.7 before 6.0.1
Remediation
Update to 6.0.1 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-22
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-26
Attack surface
PDF Invoices & Packing Slips for WooCommerce on WPSec AttackSurface
Fix released
Published

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.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0