# PDF & Print <= 2.4.8 - Unauthenticated Sensitive Information Exposure via 'print-custom' Query Arguments

- **ID:** WPSEC-2026-4475
- **Plugin:** PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin (`pdf-print`), https://wordpress.org/plugins/pdf-print/
- **Affected versions:** all versions before 2.4.9
- **Fixed in:** 2.4.9 (Update to 2.4.9 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-200
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/pdf-print
- **Fix released:** 2026-12-01
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4475/

## Description

The PDF & Print by BestWebSoft plugin for WordPress is vulnerable to Sensitive Information Exposure via the custom PDF/print output (print=pdf-custom or print=print-custom) in all versions up to, and including, 2.4.8. This is due to the plugin passing every query-string argument of the request to query_posts() and rendering the full content of each returned post. It does not check each post's type, and its intended restriction to published posts has no effect. This makes it possible for unauthenticated attackers to read the full content of published posts of non-public post types (such as reusable blocks or other plugins' internal post types) in the generated print page or PDF.

## References

- https://wpsec.com/vuln/WPSEC-2026-4475/
- https://plugins.svn.wordpress.org/pdf-print/tags/2.4.9/
- https://wordpress.org/plugins/pdf-print/

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

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.
