
wp-mpdf Security & Risk Analysis
wordpress.org/plugins/wp-mpdfPrint Wordpress posts as PDF. Optional with Geshi highlighting.
Is wp-mpdf Safe to Use in 2026?
Generally Safe
Score 97/100wp-mpdf has a strong security track record. Known vulnerabilities have been patched promptly.
The wp-mpdf plugin v3.9.2 exhibits a mixed security posture. On the positive side, it has no critical or high severity taint flows and no currently unpatched CVEs. The majority of SQL queries are prepared, and there's a reasonable number of capability checks and nonce checks in place. However, several concerns warrant attention. A significant portion of output is not properly escaped, which poses a risk of Cross-Site Scripting (XSS) vulnerabilities. Furthermore, the taint analysis reveals a notable number of flows with unsanitized paths and four high-severity taint flows, indicating potential vulnerabilities where user-supplied data is not sufficiently validated before being used in sensitive operations. The vulnerability history shows a pattern of medium severity XSS and CSRF vulnerabilities, and the presence of unsanitized paths in the taint analysis directly correlates with the historical XSS issues. While the lack of unpatched CVEs is good, the ongoing taint flow issues suggest potential for new vulnerabilities to emerge if not addressed. The bundling of TCPDF is also a potential concern if it's an outdated version, as bundled libraries can introduce vulnerabilities if not maintained.
In conclusion, while the plugin demonstrates some good security practices like prepared statements and authorization checks, the prevalence of unsanitized paths in taint flows and the high percentage of unescaped output are significant weaknesses. The historical medium-severity vulnerabilities, particularly XSS, coupled with these code analysis findings, suggest that users are at risk of encountering vulnerabilities if this plugin is not actively maintained and audited for proper input sanitization and output escaping. The existence of 4 high severity taint flows is a key area for immediate investigation and remediation.
Key Concerns
- High severity taint flows detected
- Unsanitized paths in taint flows
- Unescaped output detected (34% of outputs)
- Bundled library (TCPDF)
wp-mpdf Security Vulnerabilities
CVEs by Year
Severity Breakdown
3 total CVEs
wp-mpdf <= 3.9.1 - Authenticated (Contributor+) Stored Cross-Site Scripting
wp-mpdf <= 3.7.1 - Reflected Cross-Site Scripting
wp-mpdf <= 3.5.1 - Cross-Site Request Forgery Bypass
wp-mpdf Code Analysis
Bundled Libraries
SQL Query Safety
Output Escaping
Data Flow Analysis
wp-mpdf Attack Surface
Shortcodes 1
WordPress Hooks 9
Scheduled Events 1
Maintenance & Trust
wp-mpdf Maintenance & Trust
Maintenance Signals
Community Trust
wp-mpdf Alternatives
print-this-page
Add theme matching "🖨 Print" button in sidebar, footer, page or post
WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels
print-invoices-packing-slip-labels-for-woocommerce
Auto-generate and attach WooCommerce PDF invoices and packing slips to order emails with customizable templates & bulk print options.
Print Invoice & Delivery Notes for WooCommerce
woocommerce-delivery-notes
Create and print PDF invoices, delivery notes and receipts for your WooCommerce orders. Choose your document format from multiple templates.
Print, PDF, Email by PrintFriendly
printfriendly
The #1 Print, PDF, Email button. Stylish, full featured, customizable. Add custom header, footer, and more.
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin
pdf-print
Generate PDF files and print WordPress posts/pages. Customize document header/footer styles and appearance.
wp-mpdf Developer Profile
1 plugin · 1K total installs
How We Detect wp-mpdf
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/wp-mpdf/mpdf/css/mpdf.css/wp-content/plugins/wp-mpdf/mpdf/js/mpdf.js/wp-content/plugins/wp-mpdf/mpdf/js/mpdf.jswp-mpdf/mpdf/css/mpdf.css?ver=wp-mpdf/mpdf/js/mpdf.js?ver=HTML / DOM Fingerprints
<!-- mpdf -->window.mpdf_globalvar mpdf_global[mpdf][mpdf title=[mpdf filename=[mpdf toc=