A PDF Plugin Request Can Expose WordPress Drafts and Private Posts
CVE-2026-140122 affects PDF & Print by BestWebSoft before version 2.4.8. The vulnerability is an information-disclosure flaw in the plugin's print handler. An unauthenticated attacker can inject WordPress query arguments and retrieve the title, author, and content of posts that are not public.
What the request changes
The disclosed issue centers on pdfprnt_print() and a request using print=print-custom. By setting the post_status argument to values such as draft, private, or future, an attacker can cause the plugin to query content outside the public view. The plugin returns that content through the print flow rather than enforcing the normal post-visibility policy.
This is not a generic WordPress core vulnerability. It depends on the plugin, its print route, and the ability to influence query arguments. Sites that use the plugin but have no unpublished or sensitive content still need to patch, because future posts and internal editorial data remain exposed.
Remediation
Upgrade the plugin to 2.4.8 or later. If the site cannot update immediately, disable the plugin or block the print endpoint at the reverse proxy or web application firewall. Review whether caching layers retain generated print responses.
After updating, test a non-public draft from an unauthenticated browser and verify that it is not returned. Check search-engine caches, CDN caches, and downloaded PDF archives for previously exposed content.
Investigation
Review web-server logs for print=print-custom, post_status, draft, private, and future parameters. Look for repeated requests from a single source, unusual PDF downloads, and access to author or editorial pages that followed a disclosure. Coordinate with content owners before publishing an incident notice because the exposed material may include unpublished investigations or personal data.
Rotate credentials only if logs show broader compromise. The primary corrective action is plugin removal or upgrade, cache cleanup, and an editorial review of exposed drafts.
