CVE-2026-5347 MEDIUM

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

Vendor Mhmrajib
Product WP Books Gallery – Build Stunning Book Showcases & Libraries in Minutes
Weakness CWE-862 · Missing authorization
Published April 24, 2026
Last update April 24, 2026

CVSS base score

5.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

WP Books Gallery versions up to 4.8.0 lack proper authorization checks, allowing unauthenticated attackers to modify site content. The vulnerability requires no user interaction and can be exploited over the network. Site administrators should update to a version newer than 4.8.0 to prevent unauthorized changes to book gallery data.

What an attacker can do

03Attacker Capabilities

Modify book gallery content without logging in or having permission.

Potential impact on your site

04Site Impact

Attackers can alter or deface book gallery displays without your knowledge or consent.

Conditions required to exploit

05Prerequisites

Network access to the WordPress site; no authentication or user interaction required.

Key dates

06Disclosure timeline

April 24, 2026 CVE published
April 24, 2026 Record updated

Related vulnerabilities

08Related CVE