CVE-2026-5347

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

Published Apr 24, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The WP Books Gallery plugin for WordPress contains a missing authorization flaw in versions up to 4.8.0. The admin_init hook that processes permalink settings updates only checks for the presence of the 'permalink_structure' POST parameter and neglects to verify the caller's administrative capability or a valid nonce. As a result, an unauthenticated user can submit a POST request to the settings page and change the 'wbg_cpt_slug' option. Modifying this value alters the URL structure for all book entries, breaking existing links and hurting SEO, and undermines the integrity of the site's configuration.

Affected Systems

The vulnerability exists in the WP Books Gallery plugin by mhmrajib, titled 'WP Books Gallery – Build Stunning Book Showcases & Libraries in Minutes'. Versions 4.0.0 through 4.8.0 inclusive are affected; any installations running those versions are at risk. Newer releases such as 4.8.1 contain the fix.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. The EPSS score of <1% suggests exploitation is unlikely at present. The vulnerability is not listed in the CISA KEV catalog. Attackers would need only to craft an unauthenticated HTTP POST containing the 'permalink_structure' field and target the plugin’s settings endpoint; no privileged access is required. The resulting impact could disrupt site navigation and degrade SEO, but it does not grant direct access to the underlying filesystem or data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the WP Books Gallery plugin to version 4.8.1 or later.
  • Configure a web application firewall or web‑server rule to deny unauthenticated POST requests to the plugin’s settings endpoint, preventing the 'permalink_structure' parameter from being processed.
  • If upgrading or firewall configuration is not possible, temporarily disable the plugin by renaming its folder or otherwise removing it from the plugins directory until the fix is applied.

Generated by OpenCVE AI on April 28, 2026 at 20:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Mhmrajib
Mhmrajib wp Books Gallery – Build Stunning Book Showcases & Libraries In Minutes
Wordpress
Wordpress wordpress
Vendors & Products Mhmrajib
Mhmrajib wp Books Gallery – Build Stunning Book Showcases & Libraries In Minutes
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title WP Books Gallery <= 4.8.0 - Missing Authorization to Unauthenticated Settings Update via 'permalink_structure' Parameter
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 24, 2026, 12:03 PM
Reserved
Apr 1, 2026, 4:35 PM
Status
Deferred
Published
Apr 24, 2026, 6:16 AM
Modified
Jun 17, 2026, 10:58 AM