
WPML Country Detector Security & Risk Analysis
wordpress.org/plugins/wpml-country-detectorWPML Addon for detecting the user country and show his country flag in the language switcher. Redirect user to his country page
Is WPML Country Detector Safe to Use in 2026?
Generally Safe
Score 85/100WPML Country Detector has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.
The "wpml-country-detector" plugin v0.2 exhibits a generally good security posture based on the provided static analysis. The absence of dangerous functions, file operations, external HTTP requests, and the exclusive use of prepared statements for SQL queries are strong indicators of secure coding practices. The presence of a nonce check on the single AJAX handler, while positive, is slightly undermined by the lack of explicit capability checks, meaning any authenticated user could potentially trigger the AJAX action without proper authorization.
The static analysis reveals a concern regarding output escaping, with only 14% of outputs being properly escaped. This presents a significant Cross-Site Scripting (XSS) risk, as untrusted data rendered on the frontend could be manipulated to inject malicious scripts. Despite the lack of reported vulnerabilities in its history, this unaddressed output escaping issue warrants careful consideration. The plugin's attack surface is minimal, with only one AJAX handler, and importantly, it appears to require authentication to be triggered, which mitigates some risks.
In conclusion, while the plugin demonstrates strengths in areas like SQL security and the absence of critical taint flows, the low rate of proper output escaping is a notable weakness that could lead to XSS vulnerabilities. The lack of capability checks on the AJAX handler also represents a potential authorization bypass. The clean vulnerability history is a positive sign, suggesting past development has been secure, but it does not negate the risks identified in the current code.
Key Concerns
- Low percentage of properly escaped output
- AJAX handler without capability checks
WPML Country Detector Security Vulnerabilities
WPML Country Detector Code Analysis
Output Escaping
WPML Country Detector Attack Surface
AJAX Handlers 1
WordPress Hooks 13
Maintenance & Trust
WPML Country Detector Maintenance & Trust
Maintenance Signals
Community Trust
WPML Country Detector Alternatives
Zanto Country Detector
zanto-country-detector
Zanto Addon for detecting the user country and show his country flag in the language switcher. Redirect user to his country page
Geolocation IP Detection
geoip-detect
Provides geographic information detected by an IP adress.
Events Manager and WPML Compatibility
events-manager-wpml
Integrates the Events Manager and WPML plugins together to provide a smoother multilingual experience (Requires Events Manager and WPML)
WPML Shortcodes
wpml-shortcodes
Adds shortcodes to the WPML environment, like wpml__, wpml_e and more. Makes WP full WPML ready.
Quform WPML
quform-wpml
Translate Quform forms into multiple languages using WPML.
WPML Country Detector Developer Profile
8 plugins · 340 total installs
How We Detect WPML Country Detector
Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.
Asset Fingerprints
/wp-content/plugins/wpml-country-detector/js/stgscript.js/wp-content/plugins/wpml-country-detector/inc/country-redirect.php/wp-content/plugins/wpml-country-detector/js/stgscript.jswpml-country-detector/js/stgscript.js?ver=HTML / DOM Fingerprints
iclflagid="lang_sel"wcdpWCD_Plugin_Basewcd_on_activate_callbackwcd_on_deactivate_callbackwcdp_lang_switchergeoip_open+93 more