WP Books Gallery <= 4.8.0 - Missing Authorization to Unauthenticated Settings Update via 'permalink_structure' Parameter
The HM Books Gallery plugin for WordPress is vulnerable to Missing Authorization in versions up to and including 4.8.0. This is due to the absence of capability checks and nonce verification in the admin_init hook that handles the permalink settings update at line 205-209 of wp-books-gallery.php. The vulnerable code checks only for the presence of the 'permalink_structure' POST parameter before updating the 'wbg_cpt_slug' option, without verifying that the request comes from an authenticated administrator. This makes it possible for unauthenticated attackers to modify the custom post type slug for the books gallery, which changes the URL structure for all book entries and can break existing links and SEO rankings.
CVE-2026-5347 is a medium severity with CVSS 5.3 Vulnerability issue affecting the Plugin WP Books Gallery – Build Stunning Book Showcases & Libraries in Minutes. It affects Versions up to 4.8.0 and is fixed in 4.8.1.
CVE-2026-5347 is tracked for the Plugin WP Books Gallery – Build Stunning Book Showcases & Libraries in Minutes as medium severity with CVSS 5.3. The affected range is Versions up to 4.8.0. Update WP Books Gallery – Build Stunning Book Showcases & Libraries in Minutes to 4.8.1 or newer where that version is compatible with the site.
| Software Type | Plugin |
|---|---|
| Software Slug |
wp-books-gallery
View on wordpress.org
|
| CVE | CVE-2026-5347 |
| Patched Versions |
4.8.1
|
| Affected Versions |
Versions up to 4.8.0
|
Related CVEs for WP Books Gallery – Build Stunning Book Showcases & Libraries in Minutes
These internal links group the same WordPress plugin by CVE, issue type, severity, and patch status so operators and search engines can connect the full vulnerability cluster.
This record contains material that is subject to copyright
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. Read more
License: CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy. Read more