Embed PDF Viewer Security & Risk Analysis

wordpress.org/plugins/embed-pdf-viewer

Embed a PDF from the Media Library or elsewhere via oEmbed or as a block into an iframe tag.

20K active installs v2.4.8 PHP 7.4+ WP 6.0+ Updated Feb 21, 2026
blockembedoembedpdfviewer
99
A · Safe
CVEs total2
Unpatched0
Last CVEDec 19, 2024
Safety Verdict

Is Embed PDF Viewer Safe to Use in 2026?

Generally Safe

Score 99/100

Embed PDF Viewer has a strong security track record. Known vulnerabilities have been patched promptly.

2 known CVEsLast CVE: Dec 19, 2024Updated 1mo ago
Risk Assessment

The "embed-pdf-viewer" plugin version 2.4.8 exhibits a mixed security posture. On the positive side, the static analysis reveals no direct entry points like AJAX handlers, REST API routes, or shortcodes that are exposed without authentication. Furthermore, the code demonstrates good practices by utilizing prepared statements for all SQL queries and properly escaping all identified output. There are also no file operations or critical/high severity taint flows identified, which are significant strengths. However, several areas raise concerns. The presence of known medium severity vulnerabilities, specifically cross-site scripting (XSS) types, even though currently patched, indicates a historical tendency towards input sanitization issues. The fact that the last vulnerability was very recent (December 2024) suggests that the plugin might not have a mature or consistent security development lifecycle. A concerning aspect is the complete absence of nonce checks and capability checks, coupled with the lack of authorization checks on any discovered entry points, if any were present. While the current analysis shows 0 unprotected entry points, this lack of fundamental security mechanisms is a weakness that could be exploited if new vulnerabilities are introduced in future versions. The single external HTTP request also warrants careful consideration regarding its purpose and security implications.

Key Concerns

  • History of 2 medium severity CVEs
  • No nonce checks found
  • No capability checks found
  • 1 external HTTP request
Vulnerabilities
2

Embed PDF Viewer Security Vulnerabilities

CVEs by Year

2 CVEs in 2024
2024
Patched Has unpatched

Severity Breakdown

Medium
2

2 total CVEs

CVE-2024-56256medium · 4.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Embed PDF Viewer <= 2.3.1 - Authenticated (Editor+) Stored Cross-Site Scripting

Dec 19, 2024 Patched in 2.4.0 (21d)
CVE-2024-9451medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Embed PDF Viewer <= 2.4.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via height and width Parameters

Oct 8, 2024 Patched in 2.4.5 (1d)
Code Analysis
Analyzed Mar 16, 2026

Embed PDF Viewer Code Analysis

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

SQL Query Safety

100% prepared2 total queries

Output Escaping

100% escaped8 total outputs
Attack Surface

Embed PDF Viewer Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 3
filtermedia_send_to_editorembed-pdf-viewer.php:35
actioninitembed-pdf-viewer.php:44
actioninitembed-pdf-viewer.php:59
Maintenance & Trust

Embed PDF Viewer Maintenance & Trust

Maintenance Signals

WordPress version tested7.0
Last updatedFeb 21, 2026
PHP min version7.4
Downloads307K

Community Trust

Rating94/100
Number of ratings19
Active installs20K
Developer Profile

Embed PDF Viewer Developer Profile

Andy Fragen

12 plugins · 43K total installs

76
trust score
Avg Security Score
96/100
Avg Patch Time
356 days
View full developer profile
Detection Fingerprints

How We Detect Embed PDF Viewer

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/embed-pdf-viewer/css/embed-pdf-viewer.css
Script Paths
/wp-content/plugins/embed-pdf-viewer/blocks/build/index.js
Version Parameters
embed-pdf-viewer/style.css?ver=embed-pdf-viewer/blocks/build/index.js?ver=

HTML / DOM Fingerprints

CSS Classes
embed-pdf-viewer
Data Attributes
data-block="embed-pdf-viewer/pdf"
JS Globals
window.embed_pdf_viewer_scripts
Shortcode Output
<div><iframe class="embed-pdf-viewer" src="
FAQ

Frequently Asked Questions about Embed PDF Viewer