CVE-2026-5347
Description
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.
Affected products
1- Range: <=4.8.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
6- plugins.trac.wordpress.org/browser/wp-books-gallery/tags/4.7.8/wp-books-gallery.phpnvd
- plugins.trac.wordpress.org/browser/wp-books-gallery/tags/4.7.8/wp-books-gallery.phpnvd
- plugins.trac.wordpress.org/browser/wp-books-gallery/tags/4.8.1/wp-books-gallery.phpnvd
- plugins.trac.wordpress.org/browser/wp-books-gallery/trunk/wp-books-gallery.phpnvd
- plugins.trac.wordpress.org/browser/wp-books-gallery/trunk/wp-books-gallery.phpnvd
- www.wordfence.com/threat-intel/vulnerabilities/id/12bf1cd8-cd55-4771-b2bb-597797b1b949nvd
News mentions
2- Wordfence Intelligence Weekly WordPress Vulnerability Report (April 27, 2026 to May 3, 2026)Wordfence Blog · May 7, 2026
- Wordfence Intelligence Weekly WordPress Vulnerability Report (April 20, 2026 to April 26, 2026)Wordfence Blog · Apr 30, 2026