{
 "id": "WPSEC-2026-3696",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3696/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3696/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3696/index.md",
 "title": "Search Analytics for WP <= 1.6.2 - Unauthenticated Arbitrary Shortcode Execution via Search Terms",
 "description": "The Search Analytics for WP plugin for WordPress is vulnerable to arbitrary shortcode execution via recorded search terms shown by the Latest Searches and Popular Searches blocks in all versions up to, and including, 1.6.2. This is due to the blocks printing stored search terms with esc_html() only, which leaves square brackets intact. Block output is rendered before WordPress runs do_shortcode on post content and block widget content, so WordPress then runs any shortcode in a listed term. This makes it possible for unauthenticated attackers to run a search containing a shortcode. If it is recorded and listed by one of these blocks, the shortcode is executed when the page is viewed. Depending on the shortcodes available on the site, this can expose data or inject content or script through shortcode output.",
 "plugin": {
  "slug": "search-analytics",
  "name": "Search Analytics for WP",
  "full_name": "Search Analytics for WP – Site Search Tracking",
  "wordpress_org": "https://wordpress.org/plugins/search-analytics/",
  "advisories_url": "https://wpsec.com/vuln/plugin/search-analytics/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/search-analytics"
 },
 "type": "UNKNOWN",
 "cwe": [
  "CWE-94"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.5,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.6.1",
    "from_inclusive": true,
    "to": "1.6.3",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.6.1 before 1.6.3"
  ]
 },
 "introduced_in": "1.6.1",
 "fixed_in": "1.6.3",
 "remediation": "Update to 1.6.3 or later.",
 "fix_released": "2026-11-21T10:41:24+00:00",
 "published": "2026-11-22T11:47:37+00:00",
 "updated": "2026-11-22T11:12:18.767395+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-3696/",
  "https://plugins.svn.wordpress.org/search-analytics/tags/1.6.3/",
  "https://wordpress.org/plugins/search-analytics/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/search-analytics",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "None seen",
  "as_of": "2026-11-22"
 }
}