Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress Security & Risk Analysis

wordpress.org/plugins/gallery-plugin

Add beautiful, fully responsive galleries, albums, images, and categories to your WordPress website quickly and easily. Showcase your portfolio, photo …

10K active installs v4.7.7 PHP + WP 6.2+ Updated Jan 20, 2026
add-albumadd-albumsadd-galleriesadd-imagesadd-pictures
95
A · Safe
CVEs total5
Unpatched0
Last CVEMar 6, 2025
Safety Verdict

Is Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress Safe to Use in 2026?

Generally Safe

Score 95/100

Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress has a strong security track record. Known vulnerabilities have been patched promptly. It's a solid choice for most WordPress installations.

5 known CVEsLast CVE: Mar 6, 2025Updated 3mo ago
Risk Assessment

The 'gallery-plugin' v4.7.7 exhibits a mixed security posture. While the static analysis reveals a relatively small attack surface with no unprotected AJAX handlers or REST API routes, and a strong emphasis on output escaping (97%) and nonce checks (31), there are underlying concerns. The presence of 26 SQL queries, with 38% not using prepared statements, is a significant risk for potential SQL injection vulnerabilities, despite the absence of critical taint flows in the current analysis. Furthermore, the plugin's history of 5 known CVEs, including 2 high severity vulnerabilities (SQL Injection and Cross-Site Scripting, and Deserialization of Untrusted Data), indicates a pattern of historical weaknesses that, even if currently patched, suggest a recurring need for vigilant maintenance and potentially deeper code scrutiny. The last vulnerability being in 2025 also suggests a relatively recent discovery, implying that the plugin might still be actively targeted or has had persistent issues.

While the current static analysis shows no critical or high severity issues, and all previous CVEs are reported as patched, the high percentage of non-prepared SQL statements and the historical trend of significant vulnerabilities are substantial weaknesses. The plugin has demonstrated an ability to develop critical flaws in the past, and the static analysis does not fully mitigate the risk associated with the 38% of SQL queries that are not prepared. The absence of critical taint flows is a positive sign for the current version, but the overall historical context and the identified code signals warrant caution.

Key Concerns

  • SQL queries without prepared statements
  • History of high severity vulnerabilities
  • History of medium severity vulnerabilities
Vulnerabilities
5 published

Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress Security Vulnerabilities

CVEs by Year

1 CVE in 2017
2017
3 CVEs in 2023
2023
1 CVE in 2025
2025
Patched Has unpatched

Severity Breakdown

High
2
Medium
3

5 total CVEs

CVE-2024-13906high · 7.2Deserialization of Untrusted Data

Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress <= 4.7.3 - Authenticated (Administrator+) PHP Object Injection

Mar 6, 2025 Patched in 4.7.4 (1d)
CVE-2023-0764medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Gallery by BestWebSoft <= 4.6.9 - Authenticated (Author+) Stored Cross-Site Scripting

Mar 27, 2023 Patched in 4.7.0 (302d)
CVE-2023-0765high · 8.8Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Gallery by BestWebSoft <= 4.6.9 - Authenticated (Author+) SQL Injection

Mar 27, 2023 Patched in 4.7.0 (302d)
WF-3adf6b20-110f-4057-9fab-5248e9c18555-gallery-pluginmedium · 4.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress <= 4.6.9 - Authenticated (Administrator+) Stored Cross-Site Scripting

Mar 23, 2023 Patched in 4.7.0 (306d)
WF-2a6d72d0-f262-46a1-91c7-1c34ab995614-gallery-pluginmedium · 6.1Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress < 4.5.0 - Reflected Cross-Site Scripting

Apr 12, 2017 Patched in 4.5.0 (2477d)
Code Analysis
Analyzed Mar 16, 2026

Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress Code Analysis

Dangerous Functions
0
Raw SQL Queries
10
16 prepared
Unescaped Output
38
1093 escaped
Nonce Checks
31
Capability Checks
12
File Operations
4
External Requests
6
Bundled Libraries
0

SQL Query Safety

62% prepared26 total queries

Output Escaping

97% escaped1131 total outputs
Data Flows · Security
1 unsanitized

Data Flow Analysis

13 flows1 with unsanitized paths
<gallery-plugin> (gallery-plugin.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress Attack Surface

Entry Points9
Unprotected0

AJAX Handlers 8

authwp_ajax_bws_submit_request_feature_actionbws_menu\class-bws-settings.php:1466
authwp_ajax_bws_submit_uninstall_reason_actionbws_menu\deactivation-form.php:433
authwp_ajax_gllr_update_imagegallery-plugin.php:4136
authwp_ajax_gllr_media_checkgallery-plugin.php:4142
authwp_ajax_gllr_delete_imagegallery-plugin.php:4147
authwp_ajax_gllr_add_from_mediagallery-plugin.php:4148
authwp_ajax_gllr_change_view_modegallery-plugin.php:4149
authwp_ajax_gllr_export_slidergallery-plugin.php:4151

Shortcodes 1

[print_gllr] gallery-plugin.php:4133
WordPress Hooks 56
filterload_textdomain_mofilebws_menu\bws_functions.php:43
filtermce_external_pluginsbws_menu\bws_functions.php:1146
filtermce_buttonsbws_menu\bws_functions.php:1147
actionadmin_initbws_menu\bws_functions.php:1433
actionadmin_enqueue_scriptsbws_menu\bws_functions.php:1434
actionadmin_headbws_menu\bws_functions.php:1435
actionadmin_footerbws_menu\bws_functions.php:1436
actionadmin_noticesbws_menu\bws_functions.php:1438
actionwp_enqueue_scriptsbws_menu\bws_functions.php:1440
actionload-post-new.phpgallery-plugin.php:63
actionload-post.phpgallery-plugin.php:64
actionload-edit.phpgallery-plugin.php:65
actiontemplate_includegallery-plugin.php:126
actionedit_form_after_titlegallery-plugin.php:134
filterwp_get_attachment_urlgallery-plugin.php:826
filterwp_get_attachment_image_attributesgallery-plugin.php:827
filterwp_update_attachment_metadatagallery-plugin.php:828
actionafter_switch_themegallery-plugin.php:4081
filterplugin_action_linksgallery-plugin.php:4084
filterplugin_row_metagallery-plugin.php:4085
actionadmin_menugallery-plugin.php:4087
actionnetwork_admin_menugallery-plugin.php:4089
actioninitgallery-plugin.php:4092
actionadmin_initgallery-plugin.php:4093
actionplugins_loadedgallery-plugin.php:4095
filterrewrite_rules_arraygallery-plugin.php:4097
filterbwsplgns_get_pdf_print_contentgallery-plugin.php:4100
actionafter-gallery_categories-tablegallery-plugin.php:4102
filtermanage_edit-gallery_categories_columnsgallery-plugin.php:4103
filtermanage_gallery_categories_custom_columngallery-plugin.php:4104
actionpost_updatedgallery-plugin.php:4105
actionrestrict_manage_postsgallery-plugin.php:4106
filtergallery_categories_row_actionsgallery-plugin.php:4107
actionadmin_footer-edit-tags.phpgallery-plugin.php:4108
actiondelete_term_taxonomygallery-plugin.php:4109
actionsave_postgallery-plugin.php:4112
filtercontent_save_pregallery-plugin.php:4114
actionpre_get_postsgallery-plugin.php:4116
actiongallery_categories_add_form_fieldsgallery-plugin.php:4118
actiongallery_categories_edit_form_fieldsgallery-plugin.php:4119
actionedited_gallery_categoriesgallery-plugin.php:4120
actioncreate_gallery_categoriesgallery-plugin.php:4121
actionadmin_enqueue_scriptsgallery-plugin.php:4123
actionwp_headgallery-plugin.php:4124
actionwp_footergallery-plugin.php:4125
actionwp_enqueue_scriptsgallery-plugin.php:4126
filterpgntn_callbackgallery-plugin.php:4128
filterbody_classgallery-plugin.php:4131
filterwidget_textgallery-plugin.php:4134
actionadmin_noticesgallery-plugin.php:4137
actionprint_media_templatesgallery-plugin.php:4140
filterbws_shortcode_button_contentgallery-plugin.php:4145
filterthe_titleincludes\class-gllr-media-table.php:273
filterthe_titleincludes\class-gllr-media-table.php:306
actionload-widgets.phpincludes\class-gllr-widgets.php:176
actionwidgets_initincludes\class-gllr-widgets.php:557
Maintenance & Trust

Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJan 20, 2026
PHP min version
Downloads1.9M

Community Trust

Rating80/100
Number of ratings158
Active installs10K
Developer Profile

Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress Developer Profile

bestwebsoft

18 plugins · 207K total installs

76
trust score
Avg Security Score
96/100
Avg Patch Time
1695 days
View full developer profile
Detection Fingerprints

How We Detect Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/gallery-plugin/assets/css/gallery-frontend.min.css/wp-content/plugins/gallery-plugin/assets/css/gallery-frontend-gallery.min.css/wp-content/plugins/gallery-plugin/assets/js/gallery-frontend.min.js/wp-content/plugins/gallery-plugin/assets/js/gallery-frontend-gallery.min.js/wp-content/plugins/gallery-plugin/assets/js/admin-gallery.js/wp-content/plugins/gallery-plugin/assets/css/admin-gallery.css
Script Paths
/wp-content/plugins/gallery-plugin/assets/js/gallery-frontend.min.js/wp-content/plugins/gallery-plugin/assets/js/gallery-frontend-gallery.min.js
Version Parameters
gallery-plugin/assets/css/gallery-frontend.min.css?ver=gallery-plugin/assets/css/gallery-frontend-gallery.min.css?ver=gallery-plugin/assets/js/gallery-frontend.min.js?ver=gallery-plugin/assets/js/gallery-frontend-gallery.min.js?ver=gallery-plugin/assets/js/admin-gallery.js?ver=gallery-plugin/assets/css/admin-gallery.css?ver=

HTML / DOM Fingerprints

CSS Classes
gllr-gallery-containergllr-portfoliogllr-gallery-itemgllr-thumb-overlaygllr-thumb-titlegllr-gallery-descriptiongllr-album-containergllr-album-item
Data Attributes
data-gllr-iddata-gllr-settings
JS Globals
gllr_gallery_options
Shortcode Output
[gallery[gallery-album
FAQ

Frequently Asked Questions about Gallery by BestWebSoft – Customizable Image and Photo Galleries for WordPress