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

5.3
Missing Authorization
CVE CVE-2026-5347
CVSS 5.3 (Medium)
Publicly Published April 23, 2026
Last Updated April 24, 2026
Researcher Legion Hunter

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.

References

Share

Vulnerability Details for Books Gallery – Book Showcase, Library & Affiliate Plugin

Software Type Plugin
Software Slug wp-books-gallery (view on wordpress.org)
Patched? Yes
Remediation Update to version 4.8.1, or a newer patched version
Affected Version
  • <= 4.8.0
Patched Version
  • 4.8.1

Recent vulnerabilities in Books Gallery – Book Showcase, Library & Affiliate Plugin

# Title CVE ID CVSS Researchers Date
1 Books Gallery – Book Showcase, Library & Affiliate Plugin <= 4.8.4 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2026-108487 6.4 Ananda Dhakal October 13, 2026
2 Books Gallery – Book Showcase, Library & Affiliate Plugin <= 4.8.3 - Unauthenticated SQL Injection CVE-2026-96822 7.5 sungbyeongchan September 29, 2026
3 Freemius <= 2.10.1 - Reflected DOM-Based Cross-Site Scripting via url Parameter CVE-2024-13362 6.1 Asaf Mozes April 30, 2026
4 Freemius SDK <= 2.5.9 - Reflected Cross-Site Scripting via fs_request_get CVE-2023-33999 6.1 Rafie Muhammad July 18, 2023
5 WordPress Books Gallery <= 4.4.8 - Cross-Site Request Forgery leading to Plugin Settings Changes CVE-2023-23705 4.3 yuyudhn February 20, 2023
6 Freemius SDK <= 2.4.2 - Missing Authorization Checks CVE-2022-4974 6.3 March 4, 2022

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation