CVE-2026-108487 in Books Gallery Plugininfo

Summary

by MITRE • 10/13/2026

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Hossni Mubarak Books Gallery wp-books-gallery allows Stored XSS.This issue affects Books Gallery: from n/a through 4.8.4.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 10/13/2026

The identified vulnerability represents a classic instance of Improper Neutralization of Input During Web Page Generation, commonly known as Cross-Site Scripting or XSS. Specifically, this is classified under the CWE-79 standard for Stored XSS within the Hossni Mubarak Books Gallery plugin for WordPress. The flaw exists in versions ranging from n/a through 4.8.4 and stems from insufficient sanitization of user-supplied input before it is stored in the database or subsequently rendered back to users without proper encoding. This architectural oversight allows malicious actors to inject client-side scripts into web pages viewed by other users, bypassing standard security controls that rely on separating untrusted data from trusted commands.

From a technical perspective, the vulnerability likely resides in one of several input fields within the plugin's administrative interface or public-facing forms where user content is accepted and persisted. When an attacker submits crafted malicious code, such as JavaScript payloads embedded in book titles, descriptions, or review sections, the application fails to strip out dangerous characters like angle brackets, quotes, or event handlers before saving the data. Consequently, when this stored payload is retrieved from the database for display on a webpage, it executes directly within the context of the victim's browser session. This execution occurs without any additional user interaction beyond viewing the affected page, distinguishing Stored XSS from Reflected variants which require tricking users into clicking malicious links.

The operational impact of this vulnerability is severe due to its persistent nature and broad attack surface. Because the malicious script is stored on the server, every user who visits a compromised book listing or gallery view becomes a potential victim. Attackers can leverage this capability to perform session hijacking by stealing authentication cookies, thereby gaining unauthorized access to administrator accounts if they target privileged users. Furthermore, the vulnerability enables credential harvesting through phishing pages that mimic legitimate login portals, as well as defacement of the website's appearance and content integrity. In enterprise environments or sites handling sensitive data, this could lead to further lateral movement within a network if combined with other vulnerabilities, although in the context of a WordPress plugin, the primary risk remains compromise of user sessions and site reputation damage through malicious redirects or malware distribution.

This vulnerability maps directly to MITRE ATT&CK technique T1059.007 for JavaScript execution via web browsers and aligns with CWE-834 regarding Excessive Session Entropy if session tokens are stolen, as well as CWE-611 for Improper Restriction of XML External Entity References if the input processing involves XML parsing components that might be exploited similarly. The persistence of the payload means that remediation requires not only patching the code but also cleaning existing malicious entries from the database to prevent ongoing attacks against legitimate visitors.

Mitigation strategies must prioritize immediate updates and rigorous input validation practices. Administrators should upgrade the Books Gallery plugin to version 4.8.5 or later, where the developers have presumably implemented proper output encoding using functions like wp_kses_post or htmlspecialchars depending on the context of data rendering. For sites unable to update immediately due to compatibility constraints, temporary mitigations include implementing a Web Application Firewall rule that detects and blocks common XSS payload patterns in POST requests targeting the plugin's endpoints. Additionally, enabling Content Security Policy headers can restrict the execution of inline scripts, thereby neutralizing many stored XSS attacks even if they are successfully injected into the database. Regular security audits and code reviews focusing on data flow from input sources to output sinks are essential for preventing similar flaws in future development cycles.

Responsible

Patchstack

Reservation

10/10/2026

Disclosure

10/13/2026

Moderation

accepted

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!