Search Analytics for WP <= 1.6.2 - Unauthenticated Arbitrary Shortcode Execution via Search Terms

Medium 6.5 CWE-94Fixed in 1.6.3
ID
WPSEC-2026-3696
Plugin
Search Analytics for WP – Site Search Tracking (search-analytics)
Affected
from 1.6.1 before 1.6.3
Remediation
Update to 1.6.3 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness
CWE-94
Usage
Plugin Low · Affected versions None seen among sites WPSec scans, 2026-11-22
Attack surface
Search Analytics for WP on WPSec AttackSurface
Fix released
Published

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.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0