User IP and Location Security & Risk Analysis

wordpress.org/plugins/user-ip-and-location

Want to show your website visitors their IP address, location, and other cool details? This plugin makes it super easy! Now works perfectly with cachi …

3K active installs v4.0.2 PHP 7.2+ WP 5.0+ Updated Jul 15, 2025
country-codegeolocationregionuser-ip-addressuser-location
100
A · Safe
CVEs total1
Unpatched0
Last CVEApr 28, 2023
Safety Verdict

Is User IP and Location Safe to Use in 2026?

Generally Safe

Score 100/100

User IP and Location has a strong security track record. Known vulnerabilities have been patched promptly. It's a solid choice for most WordPress installations.

1 known CVELast CVE: Apr 28, 2023Updated 10mo ago
Risk Assessment

The 'user-ip-and-location' plugin version 4.0.2 presents a generally good security posture, with strong adherence to secure coding practices such as 100% use of prepared statements for SQL queries and a high percentage of properly escaped output. The absence of dangerous functions, file operations, and critical or high severity taint flows is commendable. However, there are specific areas that warrant attention. The presence of one unprotected REST API route represents a significant attack vector, as it could potentially be exploited without proper authentication. The vulnerability history, while not indicating currently unpatched critical issues, does show a past medium severity Cross-Site Scripting (XSS) vulnerability, which suggests the need for ongoing vigilance and thorough code reviews to prevent recurrence. Overall, the plugin demonstrates a solid foundation but requires careful monitoring and a focus on securing all entry points.

Key Concerns

  • Unprotected REST API route found
  • Past medium severity XSS vulnerability
  • Flow with unsanitized paths in taint analysis
Vulnerabilities
1 published

User IP and Location Security Vulnerabilities

CVEs by Year

1 CVE in 2023
2023
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2023-30780medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

User IP and Location <= 2.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode

Apr 28, 2023 Patched in 2.2.1 (270d)
Version History

User IP and Location Release Timeline

v4.0.1
v3.2
v3.1
Code Analysis
Analyzed Mar 16, 2026

User IP and Location Code Analysis

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

SQL Query Safety

100% prepared2 total queries

Output Escaping

90% escaped58 total outputs
Data Flows · Security
1 unsanitized

Data Flow Analysis

3 flows1 with unsanitized paths
<class-user-ip-location> (includes\class-user-ip-location.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface
1 unprotected

User IP and Location Attack Surface

Entry Points8
Unprotected1

AJAX Handlers 1

authwp_ajax_user_ip_location_dismiss_cache_noticeincludes\functions-developer.php:285

REST API Routes 2

GET/wp-json/user-ip/v1/locationincludes\functions-developer.php:29
GET/wp-json/user-ip/v1/dataincludes\functions-developer.php:38

Shortcodes 5

[userip_location] inc\user-ip-functions.php:98
[userip_location] includes\functions-shortcodes.php:81
[userip_localtime] includes\functions-shortcodes.php:93
[userip_localdate] includes\functions-shortcodes.php:105
[userip_conditional] includes\functions-shortcodes.php:153
WordPress Hooks 14
actionadmin_menuadmin\class-admin-settings.php:33
actionadmin_initadmin\class-admin-settings.php:34
actionadmin_menuadmin\user-ip-menu.php:13
actionrest_api_initincludes\functions-developer.php:44
actioninitincludes\functions-developer.php:70
filterlitespeed_cache_rest_api_excludeincludes\functions-developer.php:163
filterw3tc_cache_page_excludeincludes\functions-developer.php:172
filterrocket_cache_reject_uriincludes\functions-developer.php:181
filterwp_super_cache_exclude_uriincludes\functions-developer.php:190
filterflying_press_cache_exclude_urlsincludes\functions-developer.php:199
actioninitincludes\functions-developer.php:206
actionadmin_noticesincludes\functions-developer.php:263
actionwp_enqueue_scriptsincludes\functions-shortcodes.php:29
actionadmin_noticesuser-ip-and-location.php:60
Maintenance & Trust

User IP and Location Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedJul 15, 2025
PHP min version7.2
Downloads38K

Community Trust

Rating84/100
Number of ratings9
Active installs3K
Developer Profile

User IP and Location Developer Profile

Sunny Kumar

1 plugin · 3K total installs

79
trust score
Avg Security Score
100/100
Avg Patch Time
270 days
View full developer profile
Detection Fingerprints

How We Detect User IP and Location

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/user-ip-and-location/assets/js/user-ip-location.js
Script Paths
/wp-content/plugins/user-ip-and-location/assets/js/user-ip-location.js
Version Parameters
user-ip-and-location/assets/js/user-ip-location.js?ver=

HTML / DOM Fingerprints

CSS Classes
user-ip-placeholderuser-ip-conditional
Data Attributes
data-typedata-heightdata-widthdata-vertical-aligndata-conditions
JS Globals
userIpLocationData
REST Endpoints
/wp-json/user-ip/v1/data
Shortcode Output
<span class="user-ip-placeholder"<div class="user-ip-conditional"
FAQ

Frequently Asked Questions about User IP and Location