CoCart JWT Authentication Security & Risk Analysis

wordpress.org/plugins/cocart-jwt-authentication

JWT Authentication for CoCart API.

200 active installs v3.0.1 PHP 7.4+ WP 6.0+ Updated Dec 3, 2025
decoupledheadlessjwtrest-apiwoocommerce
100
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is CoCart JWT Authentication Safe to Use in 2026?

Generally Safe

Score 100/100

CoCart JWT Authentication 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 cocart-jwt-authentication v3.0.1 plugin exhibits a mixed security posture. On the positive side, it demonstrates good practices by using prepared statements for all SQL queries and properly escaping all outputs. The absence of file operations, external HTTP requests, and known past vulnerabilities suggests a generally well-maintained codebase. However, significant concerns arise from the static analysis. The presence of two dangerous `exec` functions is a critical red flag, as these can be exploited to execute arbitrary code on the server if user input is not rigorously sanitized. Furthermore, one of the two REST API routes lacks permission callbacks, creating an unprotected entry point that could be leveraged for unauthorized actions or information disclosure. The lack of nonce checks on AJAX handlers, although there are no AJAX handlers to check, is a potential weakness if the plugin were to introduce them in the future without proper security measures. The vulnerability history being clean is a positive indicator, but it doesn't negate the inherent risks identified in the current code.

Key Concerns

  • REST API route without permission callbacks
  • Dangerous function 'exec' found
Vulnerabilities
None known

CoCart JWT Authentication Security Vulnerabilities

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

CoCart JWT Authentication Code Analysis

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

Dangerous Functions Found

execexec( 'mode con 2>nul', $output, $return_var );includes\class-table-formatter.php:110
execexec( 'tput cols 2>/dev/null', $output, $return_var );includes\class-table-formatter.php:127

SQL Query Safety

100% prepared3 total queries

Output Escaping

100% escaped44 total outputs
Attack Surface
1 unprotected

CoCart JWT Authentication Attack Surface

Entry Points2
Unprotected1

REST API Routes 2

POST/wp-json/cocart/jwt/refresh-tokenincludes\class-rest.php:44
POST/wp-json/cocart/jwt/validate-tokenincludes\class-rest.php:53
WordPress Hooks 24
actionadmin_noticesincludes\admin\class-admin-notices.php:30
filterplugin_row_metaincludes\admin\class-admin-plugin-action-links.php:42
filterwoocommerce_rest_prepare_system_statusincludes\admin\class-cocart-jwt-wc-admin-system-status.php:33
filtercocart_system_status_dataincludes\admin\class-cocart-jwt-wc-admin-system-status.php:36
filterwoocommerce_debug_toolsincludes\admin\class-cocart-jwt-wc-admin-system-status.php:39
filtercocart_register_submenu_pageincludes\admin\class-jwt-setup.php:38
filtercocart_admin_screensincludes\admin\class-jwt-setup.php:41
actionadmin_enqueue_scriptsincludes\admin\class-jwt-setup.php:51
actioninitincludes\class-cocart-jwt-authentication.php:105
actioninitincludes\class-cocart-jwt-authentication.php:108
actionplugins_loadedincludes\class-cocart-jwt-authentication.php:111
actioncocart_jwt_cleanup_cronincludes\class-cocart-jwt-authentication.php:114
actioncocart_jwt_cleanup_legacy_cronincludes\class-cocart-jwt-authentication.php:115
actionadmin_initincludes\class-cocart-jwt-authentication.php:137
actionwp_logoutincludes\class-destroy-tokens.php:30
actionafter_password_resetincludes\class-destroy-tokens.php:33
actionprofile_updateincludes\class-destroy-tokens.php:34
actiondelete_userincludes\class-destroy-tokens.php:35
actionrest_api_initincludes\class-rest.php:43
actionrest_api_initincludes\class-rest.php:52
filtercocart_authenticateincludes\class-rest.php:65
actioncocart_jwt_auth_authenticatedincludes\class-rest.php:68
filtercocart_login_extrasincludes\class-rest.php:71
filtercocart_api_rate_limit_optionsincludes\class-rest.php:74

Scheduled Events 2

cocart_jwt_cleanup_cron
cocart_jwt_cleanup_legacy_cron
Maintenance & Trust

CoCart JWT Authentication Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedDec 3, 2025
PHP min version7.4
Downloads9K

Community Trust

Rating0/100
Number of ratings0
Active installs200
Developer Profile

CoCart JWT Authentication Developer Profile

CoCart Headless

5 plugins · 2K total installs

77
trust score
Avg Security Score
97/100
Avg Patch Time
143 days
View full developer profile
Detection Fingerprints

How We Detect CoCart JWT Authentication

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/cocart-jwt-authentication/assets/js/jwt-setup.js
Script Paths
/wp-content/plugins/cocart-jwt-authentication/assets/js/jwt-setup.js
Version Parameters
cocart-jwt-authentication/assets/js/jwt-setup.js?ver=

HTML / DOM Fingerprints

CSS Classes
cocart-jwt-setup
JS Globals
cocart_jwt_setup
FAQ

Frequently Asked Questions about CoCart JWT Authentication