VYPR
Medium severity6.4NVD Advisory· Published May 29, 2026· Updated May 29, 2026

CVE-2026-6275

CVE-2026-6275

Description

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 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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Stored XSS in StatCounter plugin up to 2.1.1 allows authors to inject scripts via unescaped nickname in JavaScript context.

Vulnerability

The StatCounter – Free Real Time Visitor Stats plugin for WordPress versions up to and including 2.1.1 contains a stored cross-site scripting (XSS) vulnerability in the statcounter_addToTags() function [1][4]. This function is hooked to wp_head and executes on every single post page. It retrieves the post author's nickname via the_author_meta() and directly echoes it into a JavaScript double-quoted string context inside a ` block without applying esc_js()` or any equivalent JavaScript-context escaping [2][3]. The insufficient output escaping allows an attacker to inject arbitrary JavaScript.

Exploitation

An authenticated attacker with at least Author-level access can set their nickname to a malicious JavaScript payload (e.g., ");alert(1);//). When the attacker publishes a post, the statcounter_addToTags() function outputs the unsanitized nickname into the page's `` block. Any user—including unauthenticated visitors—who views that post will have the injected script executed in their browser. No additional user interaction beyond viewing the post is required.

Impact

Successful exploitation results in stored cross-site scripting (XSS) that executes in the context of the victim's browser session. An attacker can perform actions such as stealing session cookies, redirecting users to malicious sites, or defacing the page. The attack affects all visitors to the compromised post, and the injected script persists until the post author's nickname is sanitized or the plugin is updated.

Mitigation

The vulnerability exists in versions up to and including 2.1.1. As of the publication date (2026-05-29), no patched version has been released. The vendor has not yet provided a fix. As a workaround, site administrators can restrict Author-level users from setting arbitrary nicknames or disable the plugin until an update is available. The CVE is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog at the time of writing.

AI Insight generated on May 29, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

6

News mentions

0

No linked articles in our index yet.