{
 "id": "WPSEC-2026-1859",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1859/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1859/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1859/index.md",
 "title": "Post Grid Gutenberg Blocks <= 5.1.1 - Authenticated (Editor+) Stored Cross-Site Scripting via Site Dark Logo",
 "description": "The Post Grid Gutenberg Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the site dark logo setting in all versions up to, and including, 5.1.1, due to the /ultp/v2/init_site_dark_logo/ REST endpoint only requiring the edit_others_posts capability and storing the supplied logo URL without sanitization, and to that value being printed without escaping inside an inline style element on every page using the dark mode. This makes it possible for authenticated attackers, with Editor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.",
 "plugin": {
  "slug": "ultimate-post",
  "name": "Post Grid Gutenberg Blocks",
  "full_name": "Post Grid Gutenberg Blocks for News, Magazines, Blog Websites – PostX",
  "wordpress_org": "https://wordpress.org/plugins/ultimate-post/",
  "advisories_url": "https://wpsec.com/vuln/plugin/ultimate-post/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/ultimate-post"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.5,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "3.1.9",
    "from_inclusive": true,
    "to": "5.1.2",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 3.1.9 before 5.1.2"
  ]
 },
 "introduced_in": "3.1.9",
 "fixed_in": "5.1.2",
 "remediation": "Update to 5.1.2 or later.",
 "fix_released": "2026-10-27T16:09:10+00:00",
 "published": "2026-10-28T16:47:31+00:00",
 "updated": "2026-10-28T09:11:24.053943+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1859/",
  "https://plugins.svn.wordpress.org/ultimate-post/tags/5.1.2/",
  "https://wordpress.org/plugins/ultimate-post/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/ultimate-post",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Medium",
  "affected_versions": "Medium",
  "as_of": "2026-10-28"
 }
}