WP Nav Menu Cache Security & Risk Analysis

wordpress.org/plugins/wp-nav-menu-cache

Create cache for dynamically generated navigation menu HTML and serve from a static file. It reduces some MySQL queries and increases page speed.

100 active installs v2.2 PHP + WP 3.8.0+ Updated Jan 18, 2023
cachecachingperformanceweb-performance-optimizationwp-cache
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is WP Nav Menu Cache Safe to Use in 2026?

Generally Safe

Score 85/100

WP Nav Menu Cache has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 3yr ago
Risk Assessment

The wp-nav-menu-cache plugin, version 2.2, presents a mixed security posture. On the positive side, it boasts zero known CVEs, a clean vulnerability history, and a seemingly small attack surface with no exposed AJAX handlers, REST API routes, shortcodes, or cron events. Furthermore, all SQL queries are properly prepared, and there are no external HTTP requests or file operations that appear to be immediately risky based on the provided data. This suggests a generally well-developed plugin in terms of common web application security pitfalls.

However, the static analysis does reveal some concerning signals. The presence of the `create_function` function is a significant red flag, as it can be a gateway for remote code execution if its input is not strictly controlled. Additionally, the output escaping is only properly implemented for 33% of outputs, indicating a risk of cross-site scripting (XSS) vulnerabilities where user-supplied data might be rendered without proper sanitization. The complete absence of nonce checks and capability checks on any potential entry points (though none were identified in the attack surface) is also a weakness that could be exploited if an attack vector were to be introduced in the future.

Given the lack of a vulnerability history, it's difficult to infer long-term patterns. However, the current analysis shows strengths in data handling (SQL, external requests) but weaknesses in code execution safety and output sanitization. The plugin's strength lies in its limited exposure points, but the identified code signals require careful attention and remediation.

Key Concerns

  • Use of dangerous function create_function
  • Low percentage of properly escaped output
  • No nonce checks implemented
  • No capability checks implemented
Vulnerabilities
None known

WP Nav Menu Cache Security Vulnerabilities

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

WP Nav Menu Cache Code Analysis

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

Dangerous Functions Found

create_function$callback = create_function('', 'echo "'.str_replace('"', '\"', $section['desc']).'";');class.settings-api.php:111

Output Escaping

33% escaped21 total outputs
Attack Surface

WP Nav Menu Cache Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 6
actionadmin_enqueue_scriptsclass.settings-api.php:33
filterpre_wp_nav_menumenu-cache.php:31
filterwp_nav_menumenu-cache.php:33
actionwp_update_nav_menumenu-cache.php:34
actionadmin_initoption-page.php:13
actionadmin_menuoption-page.php:14
Maintenance & Trust

WP Nav Menu Cache Maintenance & Trust

Maintenance Signals

WordPress version tested6.1.10
Last updatedJan 18, 2023
PHP min version
Downloads5K

Community Trust

Rating100/100
Number of ratings3
Active installs100
Developer Profile

WP Nav Menu Cache Developer Profile

Md Jahidul Islam

6 plugins · 2K total installs

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

How We Detect WP Nav Menu Cache

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

Asset Fingerprints

HTML / DOM Fingerprints

HTML Comments
<!--Start Nav Menu Served by WP Nav Menu Cache--><!--End Nav Menu Served by WP Nav Menu Cache-->
FAQ

Frequently Asked Questions about WP Nav Menu Cache