XSS in Coachific Shortcode
CVE-2026-4005
The Coachific Shortcode plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'userhash' shortcode attribute in all versions up to and including 1.0. This is due to insufficient input sanitization and output escaping. The plugin uses sanitize_text_field() on the 'userhash' parameter, which strips HTML tags but does not escape characters significant in a JavaScript string context (such as double quotes, semicolons, and parentheses). The sanitized value is then directly interpolated into a JavaScript string within a <script> tag on line 29 without any JavaScript-specific escaping (e.g., wp_json_encode() or esc_js()). This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.003 (23.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 24th percentile — 23.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: +0.000
Affected products
- Coachific Shortcode — versions 0
Weakness classification (CWE)
References
- www.wordfence.com/threat-intel/vulnerabilities/id/3d91158c-0b34-460e-9fdb-b9916…
- plugins.trac.wordpress.org/browser/coachific-shortcode/trunk/coachific.php
- plugins.trac.wordpress.org/browser/coachific-shortcode/tags/1.0/coachific.php
- plugins.trac.wordpress.org/browser/coachific-shortcode/trunk/coachific.php
- plugins.trac.wordpress.org/browser/coachific-shortcode/tags/1.0/coachific.php
Frequently asked questions
- What is CVE-2026-4005?
- CVE-2026-4005 is a medium-severity vulnerability in Coachific Shortcode, classified under Cross-site Scripting. CVSS score: 6.4/10. Published 2026-04-15.
- How severe is CVE-2026-4005?
- Medium severity. CVSS v3 base score is 6.4 out of 10.