DD Last Viewed Security & Risk Analysis

wordpress.org/plugins/dd-lastviewed

Shows the users recently viewed/visited posts, filtered on types or terms, in a widget.

500 active installs v6.2.1 PHP + WP 3.3+ Updated Nov 17, 2020
historylastviewedposts-viewed-recentlyrecentlyvisited
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is DD Last Viewed Safe to Use in 2026?

Generally Safe

Score 85/100

DD Last Viewed has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 5yr ago
Risk Assessment

The "dd-lastviewed" v6.2.1 plugin exhibits a mixed security posture. On the positive side, the plugin does not contain any known vulnerabilities (CVEs) and avoids the use of dangerous functions, raw SQL queries, file operations, and external HTTP requests. The static analysis also shows no evidence of critical or high severity taint flows, which is a strong indicator of generally safe code.

However, significant concerns arise from the identified attack surface and the absence of proper security checks. With a total of 6 entry points, 4 of which are AJAX handlers lacking any authentication or authorization checks, this presents a substantial risk. The complete absence of nonce checks and capability checks on these AJAX handlers means that any user, regardless of their logged-in status or role, can trigger these functionalities. Furthermore, the reported 8% rate of properly escaped output is alarmingly low, suggesting a high probability of cross-site scripting (XSS) vulnerabilities, as unsanitized output can be leveraged by attackers to inject malicious scripts.

While the plugin's history of zero vulnerabilities is reassuring, it doesn't negate the current risks identified in the static analysis. The lack of built-in security measures on a significant portion of its entry points, coupled with poor output escaping practices, creates exploitable weaknesses. The presence of Select2 as a bundled library also warrants attention, as outdated versions of bundled libraries can introduce vulnerabilities, though no specific information on its version is provided here. In conclusion, the plugin has good foundational practices regarding SQL and avoiding dangerous functions, but it suffers from critical oversight in securing its AJAX endpoints and sanitizing output, which requires immediate attention.

Key Concerns

  • Unprotected AJAX handlers
  • Missing nonce checks on AJAX
  • Missing capability checks on AJAX
  • Low output escaping rate
Vulnerabilities
None known

DD Last Viewed Security Vulnerabilities

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

DD Last Viewed Release Timeline

v6.2.1Current
v6.2
v6.1
v6.0
v5.3
v5.2.1
v5.2
v5.1.1
v5.1
v5.0
v4.2
v4.1
v4.0
v3.7
v3.6
v3.5
v3.4.2
v3.4.1
v3.4
v3.3
Code Analysis
Analyzed Mar 16, 2026

DD Last Viewed Code Analysis

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

Bundled Libraries

Select2

SQL Query Safety

100% prepared2 total queries

Output Escaping

8% escaped127 total outputs
Attack Surface
4 unprotected

DD Last Viewed Attack Surface

Entry Points6
Unprotected4

AJAX Handlers 4

authwp_ajax_ajax_load_widgetlast-viewed.php:79
noprivwp_ajax_ajax_load_widgetlast-viewed.php:80
authwp_ajax_ajax_set_cookie_by_jslast-viewed.php:81
noprivwp_ajax_ajax_set_cookie_by_jslast-viewed.php:82

Shortcodes 2

[dd_lastviewed] last-viewed.php:83
[dd_lastviewed_template] last-viewed.php:84
WordPress Hooks 7
actioninitlast-viewed.php:73
actionwplast-viewed.php:74
actioncustomize_controls_initlast-viewed.php:75
actionwp_enqueue_scriptslast-viewed.php:76
actionadmin_initlast-viewed.php:77
actionelementor/editor/before_enqueue_scriptslast-viewed.php:78
actionwidgets_initlast-viewed.php:659
Maintenance & Trust

DD Last Viewed Maintenance & Trust

Maintenance Signals

WordPress version tested5.5.18
Last updatedNov 17, 2020
PHP min version
Downloads25K

Community Trust

Rating98/100
Number of ratings26
Active installs500
Developer Profile

DD Last Viewed Developer Profile

Mosterd3d

2 plugins · 510 total installs

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

How We Detect DD Last Viewed

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/dd-lastviewed/css/admin-style.css/wp-content/plugins/dd-lastviewed/js/select2.full.min.js/wp-content/plugins/dd-lastviewed/js/default.min.js/wp-content/plugins/dd-lastviewed/css/style.css/wp-content/plugins/dd-lastviewed/js/ddLastViewedFront.min.js
Script Paths
/wp-content/plugins/dd-lastviewed/js/select2.full.min.js/wp-content/plugins/dd-lastviewed/js/default.min.js/wp-content/plugins/dd-lastviewed/js/ddLastViewedFront.min.js
Version Parameters
dd-lastviewed/css/admin-style.css?ver=dd-lastviewed/js/select2.full.min.js?ver=dd-lastviewed/js/default.min.js?ver=dd-lastviewed/css/style.css?ver=dd-lastviewed/js/ddLastViewedFront.min.js?ver=

HTML / DOM Fingerprints

CSS Classes
dd_last_viewed
Data Attributes
data-lv-widget-iddata-lv-post-iddata-lv-post-typedata-lv-cookie-prefixdata-lv-cookie-lifetimedata-lv-cookie-format+4 more
JS Globals
lvData
REST Endpoints
/wp-json/dd-lastviewed/v1/posts
Shortcode Output
[dd_lastviewed][dd_lastviewed_template]
FAQ

Frequently Asked Questions about DD Last Viewed