{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4240",
 "modified": "2026-11-30T11:01:42Z",
 "published": "2026-11-30T11:01:42Z",
 "summary": "Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets <= 4.6.4 - Unauthenticated Arbitrary Shortcode Execution via Recent Comments Widget",
 "details": "The Ultimate Post Kit plugin for WordPress is vulnerable to arbitrary shortcode execution via the Recent Comments widget in all versions up to, and including, 4.6.4, due to the widget printing visitor-supplied comment text and comment author names into Elementor page output without neutralizing square brackets. Elementor inserts that output into the_content before WordPress runs do_shortcode() on it. This makes it possible for unauthenticated attackers to execute arbitrary registered shortcodes by posting a comment that the widget displays once it is approved.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "ultimate-post-kit"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "2.0.0"
      },
      {
       "fixed": "4.6.5"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "from 2.0.0 before 4.6.5"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4240/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/ultimate-post-kit/tags/4.6.5/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/ultimate-post-kit/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4240/",
  "cwe_ids": [
   "CWE-94"
  ],
  "vulnerability_type": "RCE",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
