PDF-Preview inside File-Block Security & Risk Analysis

wordpress.org/plugins/pdf-preview-inside-file-block

Extends the core/file block to optionally insert a PDF preview image (generated by WordPress) before the file block and adds linking/lightbox options.

0 active installs v1.1 PHP 8.0+ WP 6.9+ Updated Apr 1, 2026
blocksfilegutenbergpdf
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is PDF-Preview inside File-Block Safe to Use in 2026?

Generally Safe

Score 100/100

PDF-Preview inside File-Block has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 1mo ago
Risk Assessment

The "pdf-preview-inside-file-block" plugin v1.0 exhibits a generally good security posture based on the provided static analysis. The plugin has a very small attack surface, with only one AJAX handler, and crucially, this handler appears to be protected by authentication checks. The complete absence of known CVEs and vulnerability history further contributes to this positive assessment, suggesting a mature and well-maintained codebase. The plugin also demonstrates good practices by utilizing prepared statements for all SQL queries, performing capability checks, and implementing nonce checks where appropriate.

However, a significant concern arises from the output escaping. With only 48% of the 27 total outputs properly escaped, there is a notable risk of Cross-Site Scripting (XSS) vulnerabilities. If user-supplied data is not consistently sanitized before being displayed, an attacker could potentially inject malicious scripts. While the taint analysis shows no current unsanitized flows, this could be a weakness in the analysis itself or an indication that such vulnerabilities are yet to be discovered. The single file operation, while not inherently insecure, warrants attention if it involves user-controlled paths or sensitive file locations.

In conclusion, the plugin has strong foundational security elements like a limited attack surface, secure SQL handling, and proper authentication/authorization. The primary weakness lies in the insufficient output escaping, which introduces a tangible risk of XSS. The lack of historical vulnerabilities is a positive indicator, but it doesn't negate the observed code quality issues. Addressing the output escaping is the most critical step to improve the plugin's overall security.

Key Concerns

  • Insufficient output escaping
Vulnerabilities
None known

PDF-Preview inside File-Block Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Version History

PDF-Preview inside File-Block Release Timeline

v1.1Current
v1.0
Code Analysis
Analyzed Mar 17, 2026

PDF-Preview inside File-Block Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
14
13 escaped
Nonce Checks
1
Capability Checks
3
File Operations
1
External Requests
0
Bundled Libraries
0

Output Escaping

48% escaped27 total outputs
Attack Surface

PDF-Preview inside File-Block Attack Surface

Entry Points1
Unprotected0

AJAX Handlers 1

authwp_ajax_lmdm_check_pdf_previewpdf-preview-inside-file-block.php:33
WordPress Hooks 6
actionadmin_initincludes\settings.php:4
actionadmin_menuincludes\settings.php:61
actioninitpdf-preview-inside-file-block.php:29
actionenqueue_block_editor_assetspdf-preview-inside-file-block.php:32
actiondelete_attachmentpdf-preview-inside-file-block.php:335
actioninitpdf-preview-inside-file-block.php:359
Maintenance & Trust

PDF-Preview inside File-Block Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedApr 1, 2026
PHP min version8.0
Downloads301

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

PDF-Preview inside File-Block Developer Profile

nicmare

2 plugins · 0 total installs

94
trust score
Avg Security Score
100/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect PDF-Preview inside File-Block

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/pdf-preview-inside-file-block/editor/block-file.js

HTML / DOM Fingerprints

Data Attributes
data-lmdm-pdf-preview-iddata-lmdm-pdf-preview-sizedata-lmdm-pdf-preview-inline-embeddata-lmdm-pdf-preview-inline-embed-heightdata-lmdm-pdf-preview-support-lightboxdata-lmdm-pdf-preview-link-to-full+2 more
JS Globals
window.LMDM_PDF_PREVIEWwindow.LMDM_PDF_PREVIEW_I18N
REST Endpoints
/wp-json/lmdm-pdf-preview/v1/check
FAQ

Frequently Asked Questions about PDF-Preview inside File-Block