WP REST API Key Authentication Security & Risk Analysis

wordpress.org/plugins/rest-api-key-authentication

A simple plugin to add API key-based authentication to the WordPress REST API. Manage multiple API keys and secure your REST API endpoints.

20 active installs v1.0 PHP 7.2+ WP 5.0+ Updated Jan 16, 2025
access-controlapi-authenticationapi-keyrest-apisecurity
92
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is WP REST API Key Authentication Safe to Use in 2026?

Generally Safe

Score 92/100

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

No known CVEs Updated 1yr ago
Risk Assessment

The "rest-api-key-authentication" v1.0 plugin presents a generally positive security posture based on the provided static analysis. The plugin demonstrates good practices by avoiding dangerous functions, performing output escaping on all outputs, and having no recorded file operations or external HTTP requests. Its attack surface appears to be minimal with no exposed AJAX handlers, REST API routes, shortcodes, or cron events. The presence of nonce and capability checks, while limited, also indicates an awareness of security fundamentals.

However, a significant concern lies in the handling of SQL queries. With two SQL queries present and none utilizing prepared statements, there is a high risk of SQL injection vulnerabilities. This is a critical oversight, as user-supplied data could potentially be manipulated to compromise the database. The absence of any taint analysis results might be due to the limited scope of the analysis or the plugin's functionality, but it doesn't negate the explicit risk identified with the SQL queries.

The plugin's vulnerability history is clean, with no recorded CVEs, which is a positive indicator. This suggests that historically, the plugin has not been a source of major security flaws. However, the lack of history doesn't absolve the current codebase of potential issues, especially given the identified SQL query concerns. In conclusion, while the plugin excels in minimizing its attack surface and good output handling, the lack of prepared statements for its SQL queries represents a substantial security weakness that needs immediate attention. The plugin's future security will depend on addressing this critical area.

Key Concerns

  • SQL queries without prepared statements
Vulnerabilities
None known

WP REST API Key Authentication Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

WP REST API Key Authentication Code Analysis

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

SQL Query Safety

0% prepared2 total queries

Output Escaping

100% escaped10 total outputs
Attack Surface

WP REST API Key Authentication Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 3
actionadmin_menurest-api-key-authentication.php:27
filterrest_authentication_errorsrest-api-key-authentication.php:30
actionadmin_enqueue_scriptsrest-api-key-authentication.php:47
Maintenance & Trust

WP REST API Key Authentication Maintenance & Trust

Maintenance Signals

WordPress version tested6.7.5
Last updatedJan 16, 2025
PHP min version7.2
Downloads952

Community Trust

Rating0/100
Number of ratings0
Active installs20
Developer Profile

WP REST API Key Authentication Developer Profile

Kamal Hosen

9 plugins · 1K total installs

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

How We Detect WP REST API Key Authentication

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/rest-api-key-authentication/css/admin-style.css/wp-content/plugins/rest-api-key-authentication/js/admin-script.js
Script Paths
/wp-content/plugins/rest-api-key-authentication/js/admin-script.js
Version Parameters
rest-api-key-authentication/css/admin-style.css?ver=rest-api-key-authentication/js/admin-script.js?ver=

HTML / DOM Fingerprints

FAQ

Frequently Asked Questions about WP REST API Key Authentication