Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Contributor WordPress credentials
-
DeliveryCraft malicious [chat num] shortcode payload
-
ExploitPublish post with injected shortcode
-
ExecutionVictim visits post and clicks WhatsApp button
-
PersistBrowser decodes HTML entities restoring single quotes
-
ImpactArbitrary JavaScript executes in victim browser context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold at minimum a Contributor-level authenticated session on the target WordPress installation (CVSS PR:L confirmed). The target site must have the Click to Chat - WA Widget plugin installed and active at version 4.38 or below. The [chat] shortcode must be rendered on a publicly accessible page - the attacker must be able to create or edit a post or page that uses this shortcode, which is within Contributor capabilities by default. Exploitation is further gated by a victim user needing to click the WhatsApp chat button on the affected page (onclick-triggered payload, not passive page-load XSS - note that the CVSS UI:N designation appears inconsistent with this requirement). What limits exploitation: the PR:L authentication requirement eliminates anonymous/unauthenticated attack paths; the click-trigger dependency means passive drive-by exploitation is not possible; scope is limited to the browser session of the user who clicks the widget, not server-side code execution despite the 'RCE' tag appearing in source metadata. |
| Impact | The CVSS 3.1 base score of 6.4 (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) reflects a Changed Scope (cross-site execution context), low complexity, and low privilege requirement (Contributor). However, the UI:N designation warrants scrutiny: the description explicitly states the payload executes 'whenever a user clicks the WhatsApp chat button,' which implies victim interaction is required; this is more consistent with UI:R scoring. Security teams should treat this as click-triggered stored XSS rather than a fully passive load-triggered attack. The PR:L requirement means an attacker must first obtain at least Contributor-level WordPress authentication, which is a real but often low-friction barrier on sites with open registration or compromised credentials. No EPSS score is available in the provided data, and this CVE is not listed in the CISA KEV catalog, indicating no confirmed active exploitation at time of analysis. The publication of Wordfence's detailed technical breakdown - including exact file paths and line numbers - and publicly browsable plugin source code on plugins.trac.wordpress.org substantially reduce exploit development effort for any actor who obtains Contributor access. Impact is limited to Low confidentiality and integrity (session hijacking, credential theft, defacement of chat widget context) with no availability impact. |
| Exploit ScenarioDerived | An attacker registers or compromises a Contributor-level WordPress account on a target site using the Click to Chat plugin, then creates or edits a post embedding a malicious shortcode such as [chat num="1234567890'-alert(document.cookie)-'"]. When the post is published and a site visitor navigates to it and clicks the rendered WhatsApp chat button, the browser decodes the ' HTML entities back to single quotes within the onclick handler, breaks out of the JavaScript string, and executes the attacker's payload - enabling session cookie theft, credential harvesting overlays, or redirection to phishing pages. No public proof-of-concept code has been identified, but the Wordfence write-up provides sufficient technical detail to reconstruct the exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 06, 2026
Stored Cross-Site Scripting in the Click to Chat - WA Widget WordPress plugin (holithemes, all versions through 4.38) allows authenticated Contributor-level users to inject persistent JavaScript payloads that execute in victim browsers when the rendered WhatsApp chat button is clicked. The root cause is a double-encoding bypass: esc_attr() sanitization produces HTML entities that are decoded back to literal characters by the browser's HTML parser before JavaScript evaluation inside an onclick event handler, completely defeating the intended escaping. No public exploit has been identified at time of analysis, but the detailed technical write-up from Wordfence combined with publicly browsable vulnerable source code significantly lowers the barrier to exploitation. Vendor-released patch version 4.39 is available.
RemediationAI
Upgrade to Click to Chat version 4.39 or later, which is confirmed as the patched release based on the WordPress plugin repository changeset at https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3557482%40click-to-chat-for-whatsapp&new=3557482%40click-to-chat-for-whatsapp. The fix should replace the esc_attr() call in the JavaScript string interpolation context with proper JavaScript string escaping (e.g., esc_js()) to prevent HTML entity re-decoding. If immediate upgrade is not feasible, the primary compensating control is to restrict WordPress Contributor role assignment - remove Contributor privileges from untrusted or unnecessary user accounts, since exploitation requires authenticated access at that level or above. As a secondary measure, a Web Application Firewall rule can be configured to block shortcode attribute values containing JavaScript event syntax or common XSS vectors targeting the 'num' parameter, though this may produce false positives on legitimate phone numbers containing special characters. Content Security Policy headers restricting inline JavaScript execution (script-src without 'unsafe-inline') would mitigate the impact of successful injection but require theme and plugin compatibility review and may break other site functionality. Wordfence's vulnerability advisory is available at https://www.wordfence.com/threat-intel/vulnerabilities/id/60440b26-1c0b-4fd0-a74a-ff5900d0e9b8.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected product is identified by CPE cpe:2.3:a:holithemes:click_to_chat_-_holithemes:*:*:*:*:*:*:*:* - a PHP WordPress plugin providing WhatsApp chat widget functionality via the [chat] shortcode. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS). The specific failure involves a context mismatch during output encoding: the CCW_Shortcode::shortcode() function at class-ccw-shortcode.php line 157 applies WordPress's esc_attr() to the 'num' parameter, which is correct for HTML attribute contexts but insufficient here. The sanitized value is then string-interpolated inside a JavaScript window.open() call whose string delimiters are single quotes (lines 194 and 221), and the entire JavaScript expression is embedded as the value of an HTML onclick attribute in style template files such as sc-style-1.php line 6. The critical browser behavior that enables exploitation is that HTML event-handler attribute values are HTML-decoded before JavaScript evaluation - so esc_attr()'s conversion of ' to ' is reversed by the parser at runtime, restoring the literal single quote and allowing the attacker to break out of the JavaScript string context and inject arbitrary code.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Primary rating from Vendor (Wordfence) · only source for this CVE.
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The Click to Chat - WA Widget plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the [chat] shortcode 'num' parameter in all versions up to, and including, 4.38. This is due to insufficient escaping when embedding user-supplied shortcode attribute values inside JavaScript string literals that are then placed in HTML event-handler attributes. The CCW_Shortcode::shortcode() function applies esc_attr() to the 'num' parameter (line 157), which converts single quotes to the HTML entity '. This entity-encoded value is then interpolated directly into a JavaScript window.open() call string delimited by single quotes (line 194/221), and that complete string is placed verbatim into an HTML onclick attribute in the style template files (e.g., sc-style-1.php line 6). Because browsers HTML-decode event attribute values before executing the embedded JavaScript, the ' entities are decoded back to literal single quotes at runtime, allowing the injected payload to break out of the JavaScript string context and execute arbitrary code. This makes it possible for authenticated attackers with Contributor-level access and above to inject arbitrary web scripts into pages that will execute whenever a user clicks the WhatsApp chat button rendered by the [chat] shortcode.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-34949
GHSA-gw8m-44wf-cqjf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB