{
 "id": "WPSEC-2026-2846",
 "url": "https://wpsec.com/vuln/WPSEC-2026-2846/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-2846/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-2846/index.md",
 "title": "Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets <= 4.2.6.1 - Authenticated (Contributor+) Remote Code Execution via Display Logic in Freeform Block Marker",
 "description": "The Widget Options plugin for WordPress is vulnerable to Remote Code Execution via the legacy freeform display-logic marker (<!--start_widgetopts ... end_widgetopts-->) in post content in all versions up to, and including, 4.2.6.1. This is due to the save-time filter that strips display logic from non-administrator content and the render-time parser decoding the marker differently: the parser removes every marker delimiter from the payload before JSON-decoding it, so a payload that the strip filter re-encodes with an empty logic value can still carry display logic that is evaluated with eval() at render time. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute arbitrary PHP code on the server when the Display Logic module is enabled.",
 "plugin": {
  "slug": "widget-options",
  "name": "Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets",
  "full_name": "Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets",
  "wordpress_org": "https://wordpress.org/plugins/widget-options/",
  "advisories_url": "https://wpsec.com/vuln/plugin/widget-options/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/widget-options"
 },
 "type": "RCE",
 "cwe": [
  "CWE-94"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 8.8,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
  "severity": "High"
 },
 "affected": {
  "ranges": [
   {
    "from": "4.0.0",
    "from_inclusive": true,
    "to": "4.2.7",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 4.0.0 before 4.2.7"
  ]
 },
 "introduced_in": "4.0.0",
 "fixed_in": "4.2.7",
 "remediation": "Update to 4.2.7 or later.",
 "fix_released": "2026-11-11T09:47:17+00:00",
 "published": "2026-11-12T17:52:14+00:00",
 "updated": "2026-11-12T17:04:24.171352+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-2846/",
  "https://plugins.svn.wordpress.org/widget-options/tags/4.2.7/",
  "https://wordpress.org/plugins/widget-options/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/widget-options",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "High",
  "affected_versions": "Medium",
  "as_of": "2026-11-12"
 }
}