Books Gallery – Book Showcase, Library & Affiliate Plugin Security & Risk Analysis

wordpress.org/plugins/wp-books-gallery

Named by Google AI as the top choice - display books, earn Amazon affiliate income, and sell with WooCommerce. Free to start.

2K active installs v4.8.2 PHP 7.2+ WP 5.4+ Updated Jun 23, 2026
affiliatebook-gallerybook-showcasebook-librarybooks
98
A · Safe
CVEs total2
Unpatched0
Last CVEApr 23, 2026
Safety Verdict

Is Books Gallery – Book Showcase, Library & Affiliate Plugin Safe to Use in 2026?

Generally Safe

Score 98/100

Books Gallery – Book Showcase, Library & Affiliate Plugin has a strong security track record. Known vulnerabilities have been patched promptly. It's a solid choice for most WordPress installations.

2 known CVEsLast CVE: Apr 23, 2026Updated 2mo ago
Risk Assessment

The wp-books-gallery plugin v4.7.8 exhibits a mixed security posture. While it has a relatively small attack surface and a decent number of nonce and capability checks, there are notable areas of concern stemming from its code signals and vulnerability history. The presence of the `unserialize` function, especially without explicit checks on the data being unserialized, is a significant risk that could lead to remote code execution if an attacker can control the serialized data. Additionally, the taint analysis revealing flows with unsanitized paths, including one of high severity, points to potential vulnerabilities where external input is not properly validated or escaped before being used in a sensitive operation.

The plugin's vulnerability history shows a past medium-severity CVE, with the last reported vulnerability in February 2023. While there are no currently unpatched CVEs, the previous CSRF vulnerability highlights a historical tendency to have exploitable weaknesses. The fact that the last vulnerability was not critical or high might suggest good patching practices, but the underlying causes of past vulnerabilities, like CSRF, often indicate a need for robust input validation and authorization checks. The plugin's SQL query practice of using prepared statements 43% of the time is a weakness, as a significant portion of its database interactions are not protected against SQL injection.

In conclusion, while the plugin has some strengths in terms of its limited attack surface and the presence of security checks, the identified risks, particularly the use of `unserialize` and unsanitized taint flows, along with less-than-ideal SQL preparation, necessitate caution. The historical CVE, though medium, serves as a reminder of past security lapses. Users should be aware of these potential vulnerabilities and ensure the plugin is updated to the latest version, although this specific version is v4.7.8, and the history indicates no *currently* unpatched CVEs for it. The mixed results suggest that while not acutely dangerous, it's not a plugin to be deployed without careful consideration and monitoring.

Key Concerns

  • Dangerous function: unserialize detected
  • Taint analysis: high severity flow with unsanitized path
  • SQL queries: 57% not using prepared statements
  • Output escaping: 47% not properly escaped
  • Bundled library: Freemius v1.0 (potentially outdated)
Vulnerabilities
2 published

Books Gallery – Book Showcase, Library & Affiliate Plugin Security Vulnerabilities

CVEs by Year

1 CVE in 2023
2023
1 CVE in 2026
2026
Patched Has unpatched

Severity Breakdown

Medium
2

2 total CVEs

CVE-2026-5347medium · 5.3Missing Authorization

WP Books Gallery <= 4.8.0 - Missing Authorization to Unauthenticated Settings Update via 'permalink_structure' Parameter

Apr 23, 2026 Patched in 4.8.1 (1d)
CVE-2023-23705medium · 4.3Cross-Site Request Forgery (CSRF)

WordPress Books Gallery <= 4.4.8 - Cross-Site Request Forgery leading to Plugin Settings Changes

Feb 20, 2023 Patched in 4.4.9 (337d)
Version History

Books Gallery – Book Showcase, Library & Affiliate Plugin Release Timeline

v4.8.2Current
v4.8.1
v4.7.91 CVE
v4.7.81 CVE
v4.7.71 CVE
v4.7.61 CVE
v4.7.51 CVE
v4.7.41 CVE
v4.7.31 CVE
v4.7.21 CVE
v4.7.11 CVE
v4.7.01 CVE
v4.6.91 CVE
v4.6.81 CVE
v4.6.71 CVE
v4.6.61 CVE
v4.6.51 CVE
v4.6.41 CVE
v4.6.31 CVE
v4.6.21 CVE
Code Analysis
Analyzed Mar 16, 2026

Books Gallery – Book Showcase, Library & Affiliate Plugin Code Analysis

Dangerous Functions
2
Raw SQL Queries
4
3 prepared
Unescaped Output
161
185 escaped
Nonce Checks
9
Capability Checks
5
File Operations
0
External Requests
1
Bundled Libraries
1

Dangerous Functions Found

unserialize$this->settings = stripslashes_deep( unserialize( get_option('wbg_general_settings') ) );core\gallery-content.php:27
unserialize$this->settings = stripslashes_deep( unserialize( get_option('wbg_detail_settings') ) );core\single-content.php:28

Bundled Libraries

Freemius1.0

SQL Query Safety

43% prepared7 total queries

Output Escaping

53% escaped346 total outputs
Data Flows · Security
2 unsanitized

Data Flow Analysis

2 flows2 with unsanitized paths
<wp-books-gallery> (wp-books-gallery.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

Books Gallery – Book Showcase, Library & Affiliate Plugin Attack Surface

Entry Points1
Unprotected0

Shortcodes 1

[wp_books_gallery] front\cls-books-gallery-front.php:78
WordPress Hooks 23
actioninitinc\cls-books-gallery-master.php:27
actionadmin_enqueue_scriptsinc\cls-books-gallery-master.php:46
actioninitinc\cls-books-gallery-master.php:47
actioninitinc\cls-books-gallery-master.php:54
actionadmin_menuinc\cls-books-gallery-master.php:61
actionwidgets_initinc\cls-books-gallery-master.php:68
filteradmin_post_thumbnail_htmlinc\cls-books-gallery-master.php:70
actionadd_meta_boxesinc\cls-books-gallery-master.php:71
actionsave_postinc\cls-books-gallery-master.php:78
actionwp_enqueue_scriptsinc\cls-books-gallery-master.php:89
filtersingle_templateinc\cls-books-gallery-master.php:90
filterarchive_templateinc\cls-books-gallery-master.php:96
filtertag_templateinc\cls-books-gallery-master.php:102
actionload-widgets.phpwidget\cls-books-gallery-widget.php:14
filterplugin_row_metawp-books-gallery.php:37
actioninitwp-books-gallery.php:61
actionpre_get_postswp-books-gallery.php:97
filtermanage_books_posts_columnswp-books-gallery.php:123
actionmanage_books_posts_custom_columnwp-books-gallery.php:162
filterwoocommerce_add_to_cart_redirectwp-books-gallery.php:169
filterwoocommerce_return_to_shop_redirectwp-books-gallery.php:177
actionadmin_initwp-books-gallery.php:183
actionadmin_initwp-books-gallery.php:204
Maintenance & Trust

Books Gallery – Book Showcase, Library & Affiliate Plugin Maintenance & Trust

Maintenance Signals

WordPress version tested7.0.2
Last updatedJun 23, 2026
PHP min version7.2
Downloads132K

Community Trust

Rating96/100
Number of ratings92
Active installs2K
Developer Profile

Books Gallery – Book Showcase, Library & Affiliate Plugin Developer Profile

Hossni Mubarak

14 plugins · 7K total installs

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

How We Detect Books Gallery – Book Showcase, Library & Affiliate Plugin

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/wp-books-gallery/assets/css/frontend.css/wp-content/plugins/wp-books-gallery/assets/css/magnific-popup.css/wp-content/plugins/wp-books-gallery/assets/js/frontend.js/wp-content/plugins/wp-books-gallery/assets/js/jquery.magnific-popup.min.js/wp-content/plugins/wp-books-gallery/assets/js/wow.min.js/wp-content/plugins/wp-books-gallery/assets/js/jquery.ddslick.min.js
Script Paths
assets/js/frontend.jsassets/js/jquery.magnific-popup.min.jsassets/js/wow.min.jsassets/js/jquery.ddslick.min.js
Version Parameters
wp-books-gallery/assets/css/frontend.css?ver=wp-books-gallery/assets/js/frontend.js?ver=wp-books-gallery/assets/js/jquery.magnific-popup.min.js?ver=wp-books-gallery/assets/js/wow.min.js?ver=wp-books-gallery/assets/js/jquery.ddslick.min.js?ver=

HTML / DOM Fingerprints

CSS Classes
wbg-gallery-itemwbg-gallery-item-imagewbg-gallery-item-titlewbg-gallery-item-authorwbg-gallery-item-pricewbg-gallery-item-buttonwbg-no-imagewbg-admin-book-cover-list
HTML Comments
<!-- Donate us link to plugin description --><!-- rewrite_rules upon plugin activation --><!-- include your custom post type on category and tags pages --><!-- Add Columns to logo list table -->+2 more
Data Attributes
data-wbg-imgdata-wbg-titledata-wbg-authordata-wbg-pricedata-wbg-buttondata-wbg-id
JS Globals
WBG_ASSETSWBG_CLS_PRFXWBG_VERSION
Shortcode Output
[wp_books_gallery]
FAQ

Frequently Asked Questions about Books Gallery – Book Showcase, Library & Affiliate Plugin