Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-4005: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in coachific Coachific Shortcode

0
Medium
VulnerabilityCVE-2026-4005cvecve-2026-4005cwe-79
Published: Wed Apr 15 2026 (04/15/2026, 08:28:14 UTC)
Source: CVE Database V5
Vendor/Project: coachific
Product: Coachific Shortcode

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/15/2026, 09:17:18 UTC

Technical Analysis

CVE-2026-4005 is a stored cross-site scripting vulnerability in the Coachific Shortcode WordPress plugin affecting all versions up to 1.0. The issue arises because the 'userhash' shortcode attribute is sanitized only with sanitize_text_field(), which removes HTML tags but fails to escape characters significant in JavaScript strings. The sanitized input is then embedded directly into a JavaScript string within a <script> tag without proper JavaScript escaping functions like wp_json_encode() or esc_js(). This allows authenticated users with Contributor-level privileges or higher to inject malicious scripts that execute in the context of any user viewing the page containing the shortcode. The vulnerability has a CVSS 3.1 base score of 6.4 (medium severity) with network attack vector, low attack complexity, and privileges required.

Potential Impact

Successful exploitation allows an authenticated user with Contributor-level access or higher to inject and execute arbitrary JavaScript in the context of other users viewing the affected pages. This can lead to information disclosure and integrity impacts, such as theft of session tokens or manipulation of page content. There is no indication of availability impact. No known exploits are reported in the wild at this time.

Mitigation Recommendations

No official patch or remediation is currently available from the vendor. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, restrict Contributor-level access carefully and avoid using the vulnerable shortcode with untrusted input. Monitoring for updates from the vendor is recommended.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-03-11T18:56:10.776Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69df540482d89c981fbdb587

Added to database: 4/15/2026, 9:01:56 AM

Last enriched: 4/15/2026, 9:17:18 AM

Last updated: 4/16/2026, 7:27:30 AM

Views: 17

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses