{
 "id": "WPSEC-2026-0857",
 "url": "https://wpsec.com/vuln/WPSEC-2026-0857/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-0857/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-0857/index.md",
 "title": "Books Gallery – Book Showcase, Library & Affiliate Plugin <= 4.8.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Book Author Meta",
 "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.",
 "plugin": {
  "slug": "wp-books-gallery",
  "name": "Books Gallery – Book Showcase, Library & Affiliate Plugin",
  "full_name": "Books Gallery – Book Showcase, Library & Affiliate Plugin",
  "wordpress_org": "https://wordpress.org/plugins/wp-books-gallery/",
  "advisories_url": "https://wpsec.com/vuln/plugin/wp-books-gallery/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/wp-books-gallery"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "4.8.5",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 4.8.5"
  ]
 },
 "introduced_in": null,
 "fixed_in": "4.8.5",
 "remediation": "Update to 4.8.5 or later.",
 "fix_released": "2026-10-12T21:23:37+00:00",
 "published": "2026-10-13T21:45:20+00:00",
 "updated": "2026-10-13T12:12:58.015320+00:00",
 "also_published_as": null,
 "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/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/wp-books-gallery",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-10-13"
 }
}