SecurityContext

CVE-2026-4005: Coachific Shortcode - Stored XSS

  • Cve: CVE-2026-4005
  • Name: Coachific Shortcode - Stored XSS
  • Description: 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.
  • Impact: Authenticated contributors can inject and execute arbitrary scripts, potentially leading to account takeover or data theft.
  • Remediation: Update to the latest version with proper JavaScript escaping for 'userhash' attribute.
  • Vulnerability type: stored_xss
  • Vulnerability impact: stored_xss
  • Requirement type: logged_in
  • Requirements: Attacker must have Contributor-level or higher access
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Epss score: 0.00302
  • Epss percentile: 0.23351
  • Assignee: [email protected]
  • Published at: 2026-04-15T09:16:32Z
  • Age in days: 223
  • Modified at: 2026-06-17T10:55:50Z
  • References total: 5
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-4005
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://plugins.trac.wordpress.org/browser/coachific-shortcode/tags/1.0/coachific.php#L13
https://plugins.trac.wordpress.org/browser/coachific-shortcode/tags/1.0/coachific.php#L29
https://plugins.trac.wordpress.org/browser/coachific-shortcode/trunk/coachific.php#L13
https://plugins.trac.wordpress.org/browser/coachific-shortcode/trunk/coachific.php#L29
https://www.wordfence.com/threat-intel/vulnerabilities/id/3d91158c-0b34-460e-9fdb-b99165ebca78?source=cve

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts