# PDF & Print <= 2.4.7 - Unauthenticated Sensitive Information Exposure via 'post_status' Parameter

- **ID:** WPSEC-2026-4301
- **Plugin:** PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin (`pdf-print`), https://wordpress.org/plugins/pdf-print/
- **Affected versions:** from 1.8.7 before 2.4.8
- **Fixed in:** 2.4.8 (Update to 2.4.8 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-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/pdf-print
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4301/

## Description

The PDF & Print by BestWebSoft plugin for WordPress is vulnerable to Sensitive Information Exposure via the 'post_status' parameter of the custom PDF/print request (print=pdf-custom or print=print-custom) in all versions up to, and including, 2.4.7. This is due to the plugin passing all query-string arguments of the request URI directly to query_posts() with no restriction on the 'post_status' argument and no check that the visitor may read the returned posts. This makes it possible for unauthenticated attackers to get the titles, content and author names of draft, pending, private and other unpublished posts in the generated PDF or print page.

## References

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

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

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.
