WP Books Gallery Missing Authorization Vulnerability in WordPress Permalink Settings Update

Vulnerability

A vulnerability exists in the WP Books Gallery plugin for WordPress, specifically in versions through 4.8.0. The issue stems from a missing authorization check, allowing unauthenticated users to modify the custom post type slug for the books gallery. This vulnerability arises because the plugin's admin_init hook, responsible for updating permalink settings, lacks proper capability checks and nonce verification. As a result, unauthorized attackers can alter the URL structure for book entries, potentially disrupting existing links and SEO performance.

Impact

Exploitation of this vulnerability allows for unauthorized changes to the custom post type slug used in the books gallery, disrupting the URL structure for all book entries. This can break existing links and negatively impact SEO rankings.

Reproduction

To reproduce this vulnerability, send a POST request to the WordPress admin permalink settings page without the necessary authorization. Include the 'permalink_structure' parameter to trigger the update for the 'wbg_cpt_slug' option. The absence of capability checks and nonce verification will allow the change to be made without authentication.

Remediation

Users are advised to update the WP Books Gallery plugin to version 4.8.1 or a newer patched version.

Added: Apr 24, 2026, 6:22 AM
Updated: Apr 24, 2026, 6:22 AM

Vulnerability Rating

Custom Algorithm
spread
3.4
impact
0.6
exploitability
9.3
remediation
7.7
relevance
6.5
threat
4.8
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.