Last Viewed Posts by WPBeginner Security & Risk Analysis

wordpress.org/plugins/last-viewed-posts

This shows your site's visitors a personalized list of posts and pages they have recently viewed.

500 active installs v1.0.2 PHP 5.6+ WP 4.9+ Updated Dec 9, 2024
last-viewed-postsrecently-viewed-postsvisited-posts
88
A · Safe
CVEs total2
Unpatched0
Last CVEDec 10, 2024
Safety Verdict

Is Last Viewed Posts by WPBeginner Safe to Use in 2026?

Generally Safe

Score 88/100

Last Viewed Posts by WPBeginner has a strong security track record. Known vulnerabilities have been patched promptly. It's a solid choice for most WordPress installations.

2 known CVEsLast CVE: Dec 10, 2024Updated 1yr ago
Risk Assessment

The "last-viewed-posts" plugin v1.0.2 exhibits a mixed security posture. On the positive side, the static analysis shows no identified entry points such as AJAX handlers, REST API routes, or shortcodes that are directly exposed without authentication. The code also demonstrates good practices with 100% of SQL queries using prepared statements and no identified dangerous functions or file operations. However, a significant concern is the moderate output escaping, with only 42% of outputs properly escaped, which could lead to cross-site scripting (XSS) vulnerabilities if data is not handled carefully before being displayed.

The plugin's vulnerability history is a major red flag. With two known CVEs, including one critical and one medium, and a recent vulnerability discovered in December 2024, it indicates a pattern of past security weaknesses. The common vulnerability types of Improper Access Control and Deserialization of Untrusted Data suggest that the plugin has historically struggled with securely handling user input and managing permissions. While there are currently no unpatched vulnerabilities, the existence of past critical issues and the lack of any capability checks or nonce checks in the static analysis are concerning, especially given the historical context.

In conclusion, while the current static analysis does not reveal immediate, exploitable attack vectors, the plugin's past vulnerability history, particularly critical ones, combined with the moderate output escaping and absence of capability checks, presents a significant risk. Users should exercise caution and consider whether the benefits of the plugin outweigh the potential risks and the ongoing need for vigilant monitoring and potential future patching.

Key Concerns

  • Unescaped output detected (58% not escaped)
  • Past critical vulnerability (1)
  • Past medium vulnerability (1)
  • No capability checks
  • No nonce checks
Vulnerabilities
2 published

Last Viewed Posts by WPBeginner Security Vulnerabilities

CVEs by Year

2 CVEs in 2024
2024
Patched Has unpatched

Severity Breakdown

Critical
1
Medium
1

2 total CVEs

CVE-2024-12294medium · 5.3Improper Access Control

Last Viewed Posts by WPBeginner <= 1.0.1 - Unauthenticated Sensitive Information Exposure

Dec 10, 2024 Patched in 1.0.2 (1d)
CVE-2024-3070critical · 9.8Deserialization of Untrusted Data

Last Viewed Posts by WPBeginner <= 1.0.0 - Unauthenticated PHP Object Injection

May 2, 2024 Patched in 1.0.1 (8d)
Version History

Last Viewed Posts by WPBeginner Release Timeline

Code Analysis
Analyzed Mar 16, 2026

Last Viewed Posts by WPBeginner Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
7
5 escaped
Nonce Checks
0
Capability Checks
0
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

42% escaped12 total outputs
Attack Surface

Last Viewed Posts by WPBeginner Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 5
actionwp_enqueue_scriptsinc\namespace.php:12
actionwidgets_initinc\namespace.php:13
filteram.last_viewed_posts.expiration_periodinc\namespace.php:36
filteram.last_viewed_posts.number_posts_to_displayinc\namespace.php:46
filteram.last_viewed_posts.post_typesinc\namespace.php:56
Maintenance & Trust

Last Viewed Posts by WPBeginner Maintenance & Trust

Maintenance Signals

WordPress version tested6.7.5
Last updatedDec 9, 2024
PHP min version5.6
Downloads23K

Community Trust

Rating46/100
Number of ratings3
Active installs500
Developer Profile

Last Viewed Posts by WPBeginner Developer Profile

jottlieb

1 plugin · 500 total installs

92
trust score
Avg Security Score
88/100
Avg Patch Time
5 days
View full developer profile
Detection Fingerprints

How We Detect Last Viewed Posts by WPBeginner

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/last-viewed-posts/assets/index.js
Script Paths
/wp-content/plugins/last-viewed-posts/assets/index.js
Version Parameters
am.view_last_posts?ver=am.view_last_posts?ver=

HTML / DOM Fingerprints

CSS Classes
am.last-viewed-posts.display-noneviewed_posts
JS Globals
amViewLastPosts
Shortcode Output
<ul class="viewed_posts am.last-viewed-posts.display-none"></ul><script> ( 'amViewLastPosts' in window && 'script' in amViewLastPosts && amViewLastPosts.script(amViewLastPosts.settings, window, document) ) </script>
FAQ

Frequently Asked Questions about Last Viewed Posts by WPBeginner