---
id: CVE-2026-116609
title: >-
  WP Visitor Statistics (Real Time Traffic) <= 8.8 - Authenticated
  (Contributor+) SQL Injection via 'from' Shortcode Attribute
summary: >-
  The WP Visitor Statistics (Real Time Traffic) plugin for WordPress is
  vulnerable to SQL Injection via the 'from' (and sibling 'to'/'first'/'second')
  shortcode attribute of the [wsm_showTrafficStatsList] shortcode in versions up
  to, and i…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-89
vendor: osamaesh
product: WP Visitor Statistics (Real Time Traffic)
affected:
  - wp_visitor_statistics_real_time_traffic <= 8.8
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-29T01:30:40.011408Z'
published: '2026-10-28'
updated: '2026-10-29'
sourceUpdated: '2026-10-29T01:41:54.871Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-116609'
references:
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/00dbb2e7-5989-4fb9-b30b-ee582bf39e3f?source=cve
  - url: >-
      https://plugins.trac.wordpress.org/browser/wp-stats-manager/tags/8.8/includes/wsm_db.php#L1449
  - url: >-
      https://plugins.trac.wordpress.org/browser/wp-stats-manager/tags/8.8/includes/wsm_statistics.php#L2002
  - url: >-
      https://plugins.trac.wordpress.org/browser/wp-stats-manager/tags/8.8/includes/wsm_statistics.php#L1980
  - url: >-
      https://plugins.trac.wordpress.org/browser/wp-stats-manager/tags/8.8/includes/wsm_db.php#L1629
  - url: >-
      https://plugins.trac.wordpress.org/changeset/3768203/wp-stats-manager/trunk/includes/wsm_db.php
tags:
  - cve.org
epss: 0.00336
epssPercentile: 0.2698
ingestedAt: '2026-10-28T07:06:27.130Z'
---

## Overview

The WP Visitor Statistics (Real Time Traffic) plugin for WordPress is vulnerable to SQL Injection via the 'from' (and sibling 'to'/'first'/'second') shortcode attribute of the [wsm_showTrafficStatsList] shortcode in versions up to, and including, 8.8 This is due to insufficient escaping on the user-supplied attribute and lack of sufficient preparation on the existing SQL query: `shortcode_atts()` returns attacker-supplied shortcode attributes verbatim (WP core performs no sanitization), only `$atts['id']` is re-sanitized afterward, and the raw value is then concatenated into a double-quoted SQL string literal inside `fnGetHourlyReportByDateNameTimeZone()` (`includes/wsm_db.php:1449`) and executed via `$wpdb->get_results()`. This makes it possible for authenticated attackers, with Contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

## Affected

- `wp_visitor_statistics_real_time_traffic <= 8.8`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
