---
id: CVE-2026-18027
title: >-
  The WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes &
  Shipping Labels plugin for WordPress is vulnerable to Directory Traversal in
  all versions up to, and including, 4.9.8 via the get_image_src_in_base64
  function
summary: >-
  The WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes &
  Shipping Labels plugin for WordPress is vulnerable to Directory Traversal in
  all versions up to, and including, 4.9.8 via the get_image_src_in_base64
  function. This …
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-22
published: '2026-08-23'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T16:10:00.220'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-18027'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/print-invoices-packing-slip-labels-for-woocommerce/tags/4.9.8/admin/modules/customizer/classes/class-customizer.php#L1453
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/print-invoices-packing-slip-labels-for-woocommerce/tags/4.9.8/admin/modules/customizer/customizer.php#L1561
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/print-invoices-packing-slip-labels-for-woocommerce/tags/4.9.8/admin/modules/customizer/customizer.php#L1607
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/print-invoices-packing-slip-labels-for-woocommerce/tags/4.9.8/public/modules/invoice/invoice.php#L1934
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/changeset/3646629/print-invoices-packing-slip-labels-for-woocommerce
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/a46f270f-d9cb-4bc1-8e10-3fc6646e1d78?source=cve
    label: security@wordfence.com
tags:
  - nvd
epss: 0.00867
epssPercentile: 0.57591
ingestedAt: '2026-10-12T16:57:59.887Z'
---

## Overview

The WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels plugin for WordPress is vulnerable to Directory Traversal in all versions up to, and including, 4.9.8 via the get_image_src_in_base64 function. This makes it possible for authenticated attackers, with subscriber-level access and above, to read the contents of arbitrary files on the server, which can contain sensitive information. The base64-encoded file contents are embedded into the cached invoice HTML and served directly to the attacker via the plugin's own Print/Download invoice endpoints, which require only a valid nonce and access key.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
