API REST Posts Security & Risk Analysis

wordpress.org/plugins/api-rest-posts

Adds REST API endpoints for latest posts and latest posts by category, with configurable date format and excerpt length.

10 active installs v1.2 PHP 7.0+ WP 5.2+ Updated Jul 1, 2026
categoriesexcerptslatest-postspostsrest-api
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is API REST Posts Safe to Use in 2026?

Generally Safe

Score 100/100

API REST Posts 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 "api-rest-posts" plugin, version 1.1, exhibits a concerning security posture despite a lack of recorded vulnerabilities. The static analysis reveals a significant attack surface consisting of two REST API routes, both of which completely lack permission callbacks. This means any authenticated user, regardless of their role or capabilities, can potentially access and interact with these endpoints. Furthermore, all identified output operations (7 in total) are not properly escaped, creating a high risk of Cross-Site Scripting (XSS) vulnerabilities. This lack of output sanitization is a critical weakness that could be exploited by attackers to inject malicious scripts, leading to session hijacking, defacement, or other harmful actions.

The absence of dangerous functions, SQL injection risks (all queries use prepared statements), file operations, external HTTP requests, and taint flows with unsanitized paths are positive indicators. The plugin also demonstrates a lack of bundled libraries, which can sometimes introduce outdated components. However, these strengths are overshadowed by the critical issues of unprotected REST API endpoints and the pervasive lack of output escaping. The vulnerability history shows no known CVEs, which might suggest it hasn't been a target or previous versions were less exposed. Nevertheless, the inherent weaknesses in the current version create a substantial risk profile.

In conclusion, while the plugin avoids common pitfalls like raw SQL or bundled vulnerable libraries, the unprotected REST API endpoints and widespread unescaped output present immediate and serious security risks. The lack of authentication and sanitization on critical entry points makes it a prime target for attackers. Users of this plugin should be aware of these significant security flaws and consider mitigating them or avoiding the plugin altogether.

Key Concerns

  • REST API routes without permission callbacks
  • No output escaping
  • No nonce checks
  • No capability checks
Vulnerabilities
None known

API REST Posts Security Vulnerabilities

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

API REST Posts Release Timeline

v1.2Current
Code Analysis
Analyzed Apr 16, 2026

API REST Posts Code Analysis

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

Output Escaping

0% escaped7 total outputs
Attack Surface
2 unprotected

API REST Posts Attack Surface

Entry Points2
Unprotected2

REST API Routes 2

GET/wp-json/last-post/v2/category/(?P<id>\d+)/numberposts/(?P<number>\d+)api-rest-posts.php:107
GET/wp-json/last-post/v2/numberposts/(?P<number>\d+)api-rest-posts.php:111
WordPress Hooks 3
actionadmin_menuapi-rest-posts.php:15
actionadmin_initapi-rest-posts.php:16
actionrest_api_initapi-rest-posts.php:106
Maintenance & Trust

API REST Posts Maintenance & Trust

Maintenance Signals

WordPress version tested7.0.2
Last updatedJul 1, 2026
PHP min version7.0
Downloads2K

Community Trust

Rating0/100
Number of ratings0
Active installs10
Developer Profile

API REST Posts Developer Profile

Miguel Fuentes

7 plugins · 1K total installs

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

How We Detect API REST Posts

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

Asset Fingerprints

HTML / DOM Fingerprints

REST Endpoints
/wp-json/last-post/v2/category/(?P<id>\d+)/numberposts/(?P<number>\d+)/wp-json/last-post/v2/numberposts/(?P<number>\d+)
FAQ

Frequently Asked Questions about API REST Posts