# PDF Generator for WordPress <= 1.6.5 - Unauthenticated Insecure Direct Object Reference to Private Post Disclosure via PDF Generation

- **ID:** WPSEC-2026-3402
- **Plugin:** PDF Generator for WordPress (`pdf-generator-for-wp`), https://wordpress.org/plugins/pdf-generator-for-wp/
- **Affected versions:** all versions before 1.6.6
- **Fixed in:** 1.6.6 (Update to 1.6.6 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/pdf-generator-for-wp
- **Fix released:** 2026-11-17
- **Published:** 2026-11-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3402/

## Description

The PDF Generator for WordPress plugin for WordPress is vulnerable to Insecure Direct Object Reference via its PDF generation and PDF email endpoints in all versions up to, and including, 1.6.5, due to a missing check that the requester may view the post whose ID is supplied. This makes it possible for unauthenticated attackers to obtain the contents of draft, pending, private, scheduled and password-protected posts, and of non-public post types such as WooCommerce orders, as PDF documents, either downloaded when guest PDF access is enabled or e-mailed to an address of their choice.

## References

- https://wpsec.com/vuln/WPSEC-2026-3402/
- https://plugins.svn.wordpress.org/pdf-generator-for-wp/tags/1.6.6/
- https://wordpress.org/plugins/pdf-generator-for-wp/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3402/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
