
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-4005 is a Stored Cross-Site Scripting (XSS) vulnerability in the Coachific Shortcode plugin for WordPress, affecting all versions up to and including 1.0. The flaw allows authenticated attackers with Contributor-level access or above to inject arbitrary web scripts via the userhash shortcode attribute, which execute in the browsers of any user visiting an affected page. It was published on April 15, 2026, with a patch referenced in the GitHub Advisory Database on April 22, 2026. The vulnerability carries a CVSS v3.1 base score of 6.4 (Medium) (GitHub Advisory, Red Hat CVE).
The root cause is improper neutralization of input during web page generation (CWE-79). The plugin applies sanitize_text_field() to the userhash shortcode parameter, which strips HTML tags but does not escape characters meaningful in a JavaScript string context — specifically double quotes, semicolons, and parentheses. The sanitized value is then directly interpolated into a JavaScript string inside a <script> tag at line 29 of coachific.php without JavaScript-specific escaping functions such as wp_json_encode() or esc_js(). This allows an attacker to break out of the JavaScript string context and inject arbitrary script code (GitHub Advisory, Wordfence).
Successful exploitation allows authenticated attackers to persistently inject malicious JavaScript into WordPress pages, which executes in the browsers of all subsequent visitors. This can lead to session hijacking, credential theft, unauthorized actions performed on behalf of victims, or distribution of malware to site visitors. The scope is changed (affecting users beyond the attacker's own session), with low confidentiality and integrity impact and no availability impact (GitHub Advisory, Red Hat CVE).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Feedly). The vulnerability requires Contributor-level authentication, which limits the attack surface compared to unauthenticated flaws. The EPSS score is approximately 0.032% (0.000320), placing it in the 2nd percentile for exploitation likelihood within 30 days (GitHub Advisory). It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
userhash attribute that breaks out of the JavaScript string context, e.g., [coachific userhash="";alert(document.cookie);//"].<script> tag containing the unsanitized userhash value, executing the injected JavaScript.wp-admin/post.php or REST API endpoints containing shortcode content with JavaScript-breaking characters (e.g., ";, );, //) in the userhash parameter.wp_posts table entries containing [coachific userhash= shortcode with embedded JavaScript payloads (e.g., alert(, document.cookie, fetch(, <script>).coachific.php line 29 for any unauthorized modifications to the plugin file that may indicate tampering beyond the shortcode injection vector.Update the Coachific Shortcode plugin to a patched version as referenced in the GitHub Advisory (GHSA-953c-p36c-7pc3), available as of April 22, 2026 (GitHub Advisory). If immediate patching is not possible, restrict Contributor-level access to only fully trusted users, as the vulnerability requires at least that privilege level. Additionally, consider deploying a Web Application Firewall (WAF) with rules to detect and block script injection attempts in shortcode parameters, and audit existing pages for any previously injected malicious userhash values (Wordfence).
Wordfence identified and disclosed this vulnerability as part of their weekly WordPress vulnerability report for April 13–19, 2026, and assigned it a moderate severity rating (Wordfence Blog). No significant broader media coverage or notable researcher commentary beyond the initial disclosure has been identified for this vulnerability.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."