NGG Smart Image Search Security & Risk Analysis

wordpress.org/plugins/ngg-smart-image-search

NGG Smart Image Search provides a smart search and display functionality for images in selectable arbitary collections of NextGEN galleries.

400 active installs v3.4.3 PHP 7.0+ WP 5.5.4+ Updated Jun 18, 2025
frontend-searchgallery-displaysimage-searchnextgen-gallerysmart-search
71
B · Generally Safe
CVEs total4
Unpatched1
Last CVESep 22, 2025
Safety Verdict

Is NGG Smart Image Search Safe to Use in 2026?

Mostly Safe

Score 71/100

NGG Smart Image Search is generally safe to use. 4 past CVEs were resolved. Keep it updated.

4 known CVEs 1 unpatched Last CVE: Sep 22, 2025Updated 9mo ago
Risk Assessment

The `ngg-smart-image-search` plugin v3.4.3 exhibits a mixed security posture. On one hand, it demonstrates good practices by exclusively using prepared statements for SQL queries and avoiding file operations and external HTTP requests. However, several concerning signals are present in the static analysis, most notably the presence of `shell_exec` without apparent authorization checks, which is a high-risk function. Additionally, only 16% of output is properly escaped, leaving the plugin susceptible to Cross-Site Scripting (XSS) vulnerabilities if user input is not sufficiently sanitized before being displayed.

The taint analysis reveals a critical severity flow with unsanitized paths, indicating a potential for path traversal or other file system related exploits. The plugin's vulnerability history is also a significant concern, with a total of 4 known CVEs, one of which remains unpatched. The common vulnerability types of SQL injection and XSS, alongside the presence of a high-severity unpatched CVE, suggest recurring weaknesses in input validation and sanitization that have not been fully addressed. While the plugin has strengths in its handling of SQL queries and avoidance of certain dangerous operations, the identified critical taint flow, low output escaping percentage, and persistent vulnerability history present a considerable risk.

Key Concerns

  • Unpatched high severity CVE
  • Critical severity taint flow with unsanitized paths
  • Low percentage of properly escaped output (16%)
  • Presence of dangerous function: shell_exec
  • No nonce checks
Vulnerabilities
4

NGG Smart Image Search Security Vulnerabilities

CVEs by Year

4 CVEs in 2025 · unpatched
2025
Patched Has unpatched

Severity Breakdown

High
1
Medium
3

4 total CVEs

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

NGG Smart Image Search <= 3.4.3 - Authenticated (Contributor+) Stored Cross-Site Scripting

Sep 22, 2025Unpatched
CVE-2025-52832high · 7.5Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

NGG Smart Image Search <= 3.4.1 - Unauthenticated SQL Injection

Jul 1, 2025 Patched in 3.4.3 (8d)
CVE-2025-47503medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

NGG Smart Image Search <= 3.3.3 - Authenticated (Contributor+) Stored Cross-Site Scripting

May 7, 2025 Patched in 3.4.1 (7d)
CVE-2024-13658medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

NGG Smart Image Search <= 3.2.1 - Authenticated (Contributor+) Stored Cross-Site Scripting

Feb 11, 2025 Patched in 3.3.2 (1d)
Code Analysis
Analyzed Mar 16, 2026

NGG Smart Image Search Code Analysis

Dangerous Functions
1
Raw SQL Queries
0
18 prepared
Unescaped Output
171
33 escaped
Nonce Checks
0
Capability Checks
3
File Operations
0
External Requests
0
Bundled Libraries
0

Dangerous Functions Found

shell_exec$exif_data_perl = shell_exec("perl " . $hr_exiftool . " -php -q " . $_SERVER['DOCUMENT_ROOT'] . $imapublic\class-ngg-smart-image-search-public.php:2169

SQL Query Safety

100% prepared18 total queries

Output Escaping

16% escaped204 total outputs
Data Flows
1 unsanitized

Data Flow Analysis

3 flows1 with unsanitized paths
hr_SIS_display_images_handler (public\class-ngg-smart-image-search-public.php:274)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

NGG Smart Image Search Attack Surface

Entry Points4
Unprotected0

Shortcodes 4

[hr_SIS_nextgen_searchbox] public\class-ngg-smart-image-search-public.php:1881
[hr_SIS_search_nextgen_images] public\class-ngg-smart-image-search-public.php:1883
[hr_SIS_display_images] public\class-ngg-smart-image-search-public.php:1884
[hr_SIS_textbox] public\class-ngg-smart-image-search-public.php:1886
WordPress Hooks 12
actionwp_footeradmin\class-ngg-smart-image-search-admin.php:1131
actionplugins_loadedincludes\class-ngg-smart-image-search.php:149
actionadmin_enqueue_scriptsincludes\class-ngg-smart-image-search.php:164
actionadmin_enqueue_scriptsincludes\class-ngg-smart-image-search.php:165
actionadmin_menuincludes\class-ngg-smart-image-search.php:168
actionadmin_initincludes\class-ngg-smart-image-search.php:171
actionadmin_initincludes\class-ngg-smart-image-search.php:174
actionadmin_noticesincludes\class-ngg-smart-image-search.php:181
actionwidgets_initincludes\class-ngg-smart-image-search.php:187
actionwp_enqueue_scriptsincludes\class-ngg-smart-image-search.php:202
actionwp_enqueue_scriptsincludes\class-ngg-smart-image-search.php:203
actionwp_headpublic\class-ngg-smart-image-search-public.php:2115
Maintenance & Trust

NGG Smart Image Search Maintenance & Trust

Maintenance Signals

WordPress version tested6.8.5
Last updatedJun 18, 2025
PHP min version7.0
Downloads11K

Community Trust

Rating98/100
Number of ratings13
Active installs400
Developer Profile

NGG Smart Image Search Developer Profile

wpo-HR

2 plugins · 410 total installs

85
trust score
Avg Security Score
78/100
Avg Patch Time
5 days
View full developer profile
Detection Fingerprints

How We Detect NGG Smart Image Search

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/ngg-smart-image-search/admin/css/ngg-smart-image-search-admin.css/wp-content/plugins/ngg-smart-image-search/admin/fonts/genericons/genericons.css/wp-content/plugins/ngg-smart-image-search/admin/js/ngg-smart-image-search-admin.js/wp-content/plugins/ngg-smart-image-search/admin/js/hide-nextgen-header.js
Script Paths
admin/js/ngg-smart-image-search-admin.jsadmin/js/hide-nextgen-header.js
Version Parameters
ngg-smart-image-search-admin.css?ver=genericons.css?ver=ngg-smart-image-search-admin.js?ver=hide-nextgen-header.js?ver=

HTML / DOM Fingerprints

CSS Classes
hr_SIS_warning
JS Globals
hr_SIS_options
FAQ

Frequently Asked Questions about NGG Smart Image Search