# Books Gallery – Book Showcase, Library & Affiliate Plugin <= 4.8.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Book Author Meta

- **ID:** WPSEC-2026-0857
- **Plugin:** Books Gallery – Book Showcase, Library & Affiliate Plugin (`wp-books-gallery`), https://wordpress.org/plugins/wp-books-gallery/
- **Affected versions:** all versions before 4.8.5
- **Fixed in:** 4.8.5 (Update to 4.8.5 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-13)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-books-gallery
- **Fix released:** 2026-10-12
- **Published:** 2026-10-13
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0857/

## Description

The Books Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the book author ('wbg_author') meta field in all versions up to, and including, 4.8.4 due to insufficient output escaping when the value is displayed in the admin Books list table. This makes it possible for authenticated attackers with contributor-level access and above, who can edit books, to inject arbitrary web scripts that will execute whenever an administrator views the Books list in the dashboard.

## References

- https://wpsec.com/vuln/WPSEC-2026-0857/
- https://plugins.svn.wordpress.org/wp-books-gallery/tags/4.8.5/
- https://wordpress.org/plugins/wp-books-gallery/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-0857/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
