Menu Swapper Security & Risk Analysis

wordpress.org/plugins/menu-swapper

The Menu Swapper allows you to register custom theme locations and easily swap menus on individual Pages or Posts.

3K active installs v1.2 PHP 7.4+ WP 6.0+ Updated Feb 26, 2025
changemenuswapswitch
92
A · Safe
CVEs total1
Unpatched0
Last CVESep 16, 2020
Safety Verdict

Is Menu Swapper Safe to Use in 2026?

Generally Safe

Score 92/100

Menu Swapper has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Sep 16, 2020Updated 1yr ago
Risk Assessment

The 'menu-swapper' plugin version 1.2 exhibits a mixed security posture. On the positive side, the plugin demonstrates good practices by avoiding dangerous functions, implementing prepared statements for all SQL queries, and performing nonce and capability checks. It also has a relatively small attack surface with no exposed AJAX handlers, REST API routes, shortcodes, or cron events that lack authentication. However, a significant concern is the low percentage of properly escaped output, with only 7% of 15 total outputs being escaped. This could leave the plugin vulnerable to cross-site scripting (XSS) attacks if user-supplied data is outputted without proper sanitization.

The vulnerability history shows one known CVE, which is currently patched, but it was a medium severity Cross-Site Request Forgery (CSRF) vulnerability from 2020. While there are no unpatched vulnerabilities at this time, the previous CSRF vulnerability indicates a past weakness that, combined with the output escaping issue, suggests a need for ongoing vigilance. The absence of critical or high-severity taint flows is a positive sign, but the lack of analyzed flows limits the confidence in this assessment regarding more complex vulnerabilities.

In conclusion, while the plugin has made strides in secure coding practices like prepared statements and auth checks, the prevalent issue of insufficient output escaping presents a notable risk. The past CSRF vulnerability, though patched, serves as a reminder of potential security gaps. A comprehensive review of output handling and potentially more robust taint analysis would be beneficial to further strengthen its security.

Key Concerns

  • Insufficient output escaping
  • Past medium severity CSRF vulnerability
Vulnerabilities
1

Menu Swapper Security Vulnerabilities

CVEs by Year

1 CVE in 2020
2020
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2020-36746medium · 4.3Cross-Site Request Forgery (CSRF)

Menu Swapper <= 1.1.0.2 - Cross-Site Request Forgery Bypass

Sep 16, 2020 Patched in 1.1.1 (1224d)
Code Analysis
Analyzed Mar 16, 2026

Menu Swapper Code Analysis

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

Output Escaping

7% escaped15 total outputs
Attack Surface

Menu Swapper Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 7
actionadmin_menuincludes\admin-page.php:3
actionadmin_initincludes\admin-page.php:4
actionadmin_print_styles-settings_page_menu-swapperincludes\functions.php:8
actioninitincludes\functions.php:23
filterwp_nav_menu_argsincludes\functions.php:59
actionadd_meta_boxesincludes\meta-box.php:23
actionsave_postincludes\meta-box.php:100
Maintenance & Trust

Menu Swapper Maintenance & Trust

Maintenance Signals

WordPress version tested6.7.5
Last updatedFeb 26, 2025
PHP min version7.4
Downloads62K

Community Trust

Rating94/100
Number of ratings43
Active installs3K
Developer Profile

Menu Swapper Developer Profile

sevenspark

6 plugins · 126K total installs

71
trust score
Avg Security Score
89/100
Avg Patch Time
395 days
View full developer profile
Detection Fingerprints

How We Detect Menu Swapper

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/menu-swapper/assets/css/menu-swapper.css/wp-content/plugins/menu-swapper/assets/js/menu-swapper.js
Version Parameters
menu-swapper/assets/css/menu-swapper.css?ver=menu-swapper/assets/js/menu-swapper.js?ver=

HTML / DOM Fingerprints

CSS Classes
mswp-wrapmswp-tipsmenu-swapper-theme-locs-tablemswp-deletemswp-delete-xmswp_theme_locations_slugmswp-tl-arrowmswp_theme_locations_name+2 more
Data Attributes
mswp_theme_locations
JS Globals
MSWP_VERSIONMSWP_PLUGIN_URLMSWP_PLUGIN_DIRMSWP_PLUGIN_FILEMSWP_LOC_POST_METAMSWP_TARGET_POST_META+1 more
FAQ

Frequently Asked Questions about Menu Swapper