REST API Only Security & Risk Analysis

wordpress.org/plugins/rest-api-only

Force all non-admin, non-AJAX, and non-REST API requests to return a 404 for headless or API-only sites.

0 active installs v1.0.2 PHP + WP 5.0+ Updated Dec 17, 2025
404apiheadlessrestsecurity
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is REST API Only Safe to Use in 2026?

Generally Safe

Score 100/100

REST API Only has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 4mo ago
Risk Assessment

The "rest-api-only" plugin v1.0.2 exhibits an exceptionally strong security posture based on the provided static analysis. It demonstrates a commitment to secure coding practices by implementing prepared statements for all SQL queries and ensuring proper output escaping. The absence of any identified dangerous functions, file operations, external HTTP requests, or taint flows with unsanitized paths further reinforces its robustness. The plugin also has a clean vulnerability history, with no known CVEs, suggesting a history of well-maintained and secure code. This lack of known vulnerabilities and the absence of critical code signals point to a well-developed and secure plugin, particularly for its intended purpose of controlling REST API access. The total absence of entry points like AJAX handlers, REST API routes, shortcodes, and cron events, especially those lacking authentication, is a significant strength that minimizes the plugin's attack surface. While the lack of explicit capability checks and nonce checks could be a concern in other plugin contexts, given the stated "rest-api-only" nature and zero entry points, these are unlikely to represent a significant risk in this specific scenario. The plugin's strengths lie in its minimal attack surface and adherence to secure coding principles, making it a highly secure option.

Vulnerabilities
None known

REST API Only Security Vulnerabilities

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

REST API Only Release Timeline

v1.0.2Current
Code Analysis
Analyzed Apr 16, 2026

REST API Only Code Analysis

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

Output Escaping

100% escaped1 total outputs
Attack Surface

REST API Only Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 1
actiontemplate_redirectrest-api-only.php:17
Maintenance & Trust

REST API Only Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedDec 17, 2025
PHP min version
Downloads152

Community Trust

Rating0/100
Number of ratings0
Active installs0
Developer Profile

REST API Only Developer Profile

jakubkanna

4 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 REST API Only

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
FAQ

Frequently Asked Questions about REST API Only