Image Gallery Security & Risk Analysis

wordpress.org/plugins/new-image-gallery

Create responsive image galleries with lightbox, grid & masonry layouts. Easy shortcode display for posts and pages.

4K active installs v1.6.1 PHP + WP 3.0+ Updated Feb 27, 2026
galleryimage-gallerylightboxmasonryphoto-gallery
96
A · Safe
CVEs total2
Unpatched0
Last CVEFeb 11, 2026
Safety Verdict

Is Image Gallery Safe to Use in 2026?

Generally Safe

Score 96/100

Image Gallery has a strong security track record. Known vulnerabilities have been patched promptly.

2 known CVEsLast CVE: Feb 11, 2026Updated 1mo ago
Risk Assessment

The "new-image-gallery" plugin version 1.6.1 presents a mixed security posture. On the positive side, it demonstrates good practices such as exclusively using prepared statements for SQL queries, a high percentage of properly escaped output, and a good number of nonce and capability checks. The attack surface is relatively small with no identified unprotected entry points, and there are no external HTTP requests or file operations, which limits potential attack vectors. However, the presence of two instances of the `unserialize` function is a significant concern, as this function can be vulnerable to deserialization attacks if not handled with extreme care, especially with untrusted data. The taint analysis reveals two flows with unsanitized paths, which, while not classified as critical or high severity in this analysis, warrants attention given the use of `unserialize`.

The plugin's vulnerability history is a critical red flag. It has a total of two known CVEs, with one high and one medium severity vulnerability previously identified. Although currently no vulnerabilities are marked as unpatched, the recurring themes of "Deserialization of Untrusted Data" and "Missing Authorization" in past vulnerabilities are directly aligned with the static analysis findings, particularly the `unserialize` calls and the potential for authorization bypasses. The last vulnerability reported in 2026, while seemingly in the future, strongly suggests a pattern of past issues related to these categories. The plugin's strengths in other areas are overshadowed by these historical and statically identified risks, particularly the `unserialize` function, which requires rigorous validation of any data passed to it. While no active unpatched vulnerabilities are reported, the historical pattern and the presence of the `unserialize` function create a considerable risk.

Key Concerns

  • Dangerous function unserialize used
  • Flows with unsanitized paths found
  • Previous high severity CVE
  • Previous medium severity CVE
Vulnerabilities
2

Image Gallery Security Vulnerabilities

CVEs by Year

1 CVE in 2024
2024
1 CVE in 2026
2026
Patched Has unpatched

Severity Breakdown

High
1
Medium
1

2 total CVEs

CVE-2026-22345high · 7.5Deserialization of Untrusted Data

Image Gallery – Lightbox Gallery, Responsive Photo Gallery, Masonry Gallery <= 1.6.0 - Authenticated (Contributor+) PHP Object Injection

Feb 11, 2026 Patched in 1.6.1 (24d)
CVE-2024-35721medium · 4.3Missing Authorization

Image Gallery – Lightbox Gallery, Responsive Photo Gallery, Masonry Gallery <= 1.4.5 - Missing Authorization

Jun 6, 2024 Patched in 1.4.6 (7d)
Code Analysis
Analyzed Mar 16, 2026

Image Gallery Code Analysis

Dangerous Functions
2
Raw SQL Queries
0
0 prepared
Unescaped Output
20
258 escaped
Nonce Checks
7
Capability Checks
17
File Operations
0
External Requests
0
Bundled Libraries
0

Dangerous Functions Found

unserializereturn @unserialize($serialized_data, array('allowed_classes' => false));new-image-gallery.php:41
unserializereturn @unserialize($serialized_data);new-image-gallery.php:43

Output Escaping

93% escaped278 total outputs
Data Flows
2 unsanitized

Data Flow Analysis

2 flows2 with unsanitized paths
_ajax_image_gallery (new-image-gallery.php:385)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Image Gallery Attack Surface

Entry Points2
Unprotected0

AJAX Handlers 1

authwp_ajax_image_gallery_jsnew-image-gallery.php:116

Shortcodes 1

[IMG-Gal] include\shortcode.php:11
WordPress Hooks 37
actioninitclass-tgm-plugin-activation.php:268
filterload_textdomain_mofileclass-tgm-plugin-activation.php:269
actioninitclass-tgm-plugin-activation.php:272
actionadmin_menuclass-tgm-plugin-activation.php:421
actionadmin_headclass-tgm-plugin-activation.php:422
filterinstall_plugin_complete_actionsclass-tgm-plugin-activation.php:425
filterupdate_plugin_complete_actionsclass-tgm-plugin-activation.php:426
actionadmin_noticesclass-tgm-plugin-activation.php:429
actionadmin_initclass-tgm-plugin-activation.php:430
actionadmin_enqueue_scriptsclass-tgm-plugin-activation.php:431
actionload-plugins.phpclass-tgm-plugin-activation.php:436
actionswitch_themeclass-tgm-plugin-activation.php:439
actionswitch_themeclass-tgm-plugin-activation.php:442
actionadmin_initclass-tgm-plugin-activation.php:447
actionswitch_themeclass-tgm-plugin-activation.php:452
actionload_textdomain_mofileclass-tgm-plugin-activation.php:475
filterupgrader_source_selectionclass-tgm-plugin-activation.php:889
actionplugins_loadedclass-tgm-plugin-activation.php:2132
filtertgmpa_table_data_itemsclass-tgm-plugin-activation.php:2256
filterupgrader_source_selectionclass-tgm-plugin-activation.php:2997
actionadmin_initclass-tgm-plugin-activation.php:3167
actionupgrader_process_completeclass-tgm-plugin-activation.php:3262
filterupgrader_post_installclass-tgm-plugin-activation.php:3321
filterupgrader_post_installclass-tgm-plugin-activation.php:3470
actionplugins_loadednew-image-gallery.php:99
actionadmin_menunew-image-gallery.php:102
actionadmin_menunew-image-gallery.php:105
actioninitnew-image-gallery.php:108
actionadd_meta_boxesnew-image-gallery.php:111
actionadmin_initnew-image-gallery.php:114
actionsave_postnew-image-gallery.php:118
filterwidget_textnew-image-gallery.php:121
filtermanage_image_gallery_posts_columnsnew-image-gallery.php:124
actionmanage_image_gallery_posts_custom_columnnew-image-gallery.php:127
actionwp_enqueue_scriptsnew-image-gallery.php:129
actionwp_enqueue_scriptsnew-image-gallery.php:507
actiontgmpa_registernew-image-gallery.php:511
Maintenance & Trust

Image Gallery Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedFeb 27, 2026
PHP min version
Downloads227K

Community Trust

Rating90/100
Number of ratings33
Active installs4K
Developer Profile

Image Gallery Developer Profile

A WP Life

61 plugins · 64K total installs

77
trust score
Avg Security Score
97/100
Avg Patch Time
267 days
View full developer profile
Detection Fingerprints

How We Detect Image Gallery

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/new-image-gallery/js/custom.js/wp-content/plugins/new-image-gallery/css/custom.css
Script Paths
/wp-content/plugins/new-image-gallery/js/custom.js
Version Parameters
new-image-gallery/js/custom.js?ver=new-image-gallery/css/custom.css?ver=

HTML / DOM Fingerprints

CSS Classes
ig-gallery-wrap
HTML Comments
<!--Start New Image Gallery--><!--End New Image Gallery-->
Data Attributes
data-gallery-id
JS Globals
NewImageGallery
Shortcode Output
[IMG-Gal id=
FAQ

Frequently Asked Questions about Image Gallery