Disable REST API Security & Risk Analysis

wordpress.org/plugins/disable-json-api

Disable the use of the REST API on your website to site users. Now with User Role support!

90K active installs v1.8 PHP 5.6+ WP 4.9+ Updated Sep 14, 2023
adminapijsonrestrest-api
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is Disable REST API Safe to Use in 2026?

Generally Safe

Score 85/100

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

No known CVEs Updated 2yr ago
Risk Assessment

The 'disable-json-api' plugin version 1.8 exhibits a strong security posture based on the provided static analysis. The absence of any AJAX handlers, REST API routes, shortcodes, or cron events significantly limits its attack surface. The code signals further reinforce this, with no dangerous functions, all SQL queries using prepared statements, and no file operations or external HTTP requests. The presence of nonce and capability checks, even if only one each, indicates an awareness of security best practices.

The taint analysis reveals no critical or high severity flows with unsanitized paths, which is a very positive sign. The vulnerability history is also clean, with no recorded CVEs, further suggesting a well-maintained and secure plugin. The only area that could be improved is the output escaping, with nearly half of the outputs not being properly escaped. While this doesn't present an immediate critical risk given the limited attack surface, it is a practice that should be addressed to further harden the plugin against potential future vulnerabilities or more complex attack vectors.

In conclusion, version 1.8 of 'disable-json-api' appears to be a secure plugin with a minimal attack surface and robust coding practices. The lack of vulnerabilities and the clean taint analysis are excellent indicators. The only noted concern is the output escaping, which is a minor point in the context of the plugin's overall design and lack of exposed entry points. This plugin seems to be effectively achieving its stated purpose of disabling the JSON API with a low security risk.

Key Concerns

  • Nearly half of outputs are not properly escaped
Vulnerabilities
None known

Disable REST API Security Vulnerabilities

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

Disable REST API Code Analysis

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

Output Escaping

48% escaped23 total outputs
Data Flows
All sanitized

Data Flow Analysis

1 flows
<admin> (admin.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Disable REST API Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 8
actionwp_loadedclasses\disable-rest-api.php:33
actionadmin_menuclasses\disable-rest-api.php:36
filterrest_authentication_errorsclasses\disable-rest-api.php:39
actionadmin_enqueue_scriptsclasses\disable-rest-api.php:153
actionadmin_noticesclasses\requirements-check.php:26
actionadmin_noticesclasses\requirements-check.php:42
actionadmin_noticesclasses\requirements-check.php:62
actioninitdisable-json-api.php:23
Maintenance & Trust

Disable REST API Maintenance & Trust

Maintenance Signals

WordPress version tested6.3.8
Last updatedSep 14, 2023
PHP min version5.6
Downloads754K

Community Trust

Rating96/100
Number of ratings38
Active installs90K
Developer Profile

Disable REST API Developer Profile

Dave McHale

5 plugins · 90K total installs

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

How We Detect Disable REST API

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/disable-json-api/css/admin.css/wp-content/plugins/disable-json-api/js/admin-footer.js/wp-content/plugins/disable-json-api/js/admin-header.js
Script Paths
/wp-content/plugins/disable-json-api/js/admin-header.js/wp-content/plugins/disable-json-api/js/admin-footer.js
Version Parameters
disable-json-api/css/admin.css?ver=disable-json-api/js/admin-header.js?ver=disable-json-api/js/admin-footer.js?ver=

HTML / DOM Fingerprints

REST Endpoints
/wp-json/
FAQ

Frequently Asked Questions about Disable REST API