Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain WordPress Author-level account
-
DeliverySet nickname to JavaScript payload string
-
ExploitPublish post on target site
-
InstallAny visitor loads attacker-authored post page
-
C2wp_head fires statcounter_addToTags()
-
ExecuteUnescaped nickname breaks JS string context
-
ImpactArbitrary 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-33250
GHSA-fm82-44w2-4gmf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB