---
id: CVE-2026-97341
title: >-
  The Visitor Traffic Real Time Statistics plugin for WordPress is vulnerable to
  Stored DOM-Based Cross-Site Scripting via 'X-Real-IP' HTTP Header in all
  versions up to, and including, 8.16 due to insufficient input sanitization and
  output…
summary: >-
  The Visitor Traffic Real Time Statistics plugin for WordPress is vulnerable to
  Stored DOM-Based Cross-Site Scripting via 'X-Real-IP' HTTP Header in all
  versions up to, and including, 8.16 due to insufficient input sanitization and
  output…
severity: high
cvss: 7.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
vendor: wp-buy
product: Visitor Traffic Real Time Statistics
affected:
  - visitor_traffic_real_time_statistics <= 8.16
published: '2026-10-03'
updated: '2026-10-03'
sourceUpdated: '2026-10-03T06:16:49.323'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-97341'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/visitors-traffic-real-time-statistics/tags/8.14/WPHitsCounter.php#L877
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/visitors-traffic-real-time-statistics/tags/8.14/functions.php#L3407
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/visitors-traffic-real-time-statistics/tags/8.14/functions.php#L3756
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/visitors-traffic-real-time-statistics/tags/8.14/functions.php#L4735
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/visitors-traffic-real-time-statistics/tags/8.14/js/ahcfree_js_scripts.js#L1036
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/changeset?reponame=&old=3722792%40visitors-traffic-real-time-statistics&new=3722792%40visitors-traffic-real-time-statistics
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/5349815d-a9e4-431a-8da7-0d7d68b7d427?source=cve
    label: security@wordfence.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-03T06:39:57.571Z'
---

## Overview

The Visitor Traffic Real Time Statistics plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via 'X-Real-IP' HTTP Header in all versions up to, and including, 8.16 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires no authentication, no nonce, and no capability — the wp_ajax_nopriv_ahcfree_track_visitor endpoint accepts the forged X-Real-IP header from any unauthenticated HTTP request and stores the entity-encoded payload verbatim in the database.

## Remediation

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