Click to Chat <= 4.39 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'num' Shortcode Parameter
Summary
| CVE | CVE-2026-7795 |
|---|---|
| State | PUBLISHED |
| Assigner | Wordfence |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-06-06 04:17:40 UTC |
| Updated | 2026-06-08 14:57:14 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 6.4 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
EPSS: 0.000400000 probability, percentile 0.122190000 (date 2026-06-09)
Problem Types: CWE-79 | CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 6.4 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
| 3.1 | CNA | DECLARED | 6.4 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
ChangedConfidentiality
LowIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Holithemes | Click To Chat HoliThemes | affected 4.39 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/commons/sty... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.39/prev/inc/class-c... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/changeset | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.39/prev/inc/commons... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.39/prev/inc/class-c... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/class-ccw-s... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/class-ccw-s... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.38/prev/inc/class-c... | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.38/prev/inc/class-c... | [email protected] | plugins.trac.wordpress.org | |
| www.wordfence.com/threat-intel/vulnerabilities/id/60440b26-1c0b-4fd0-a74a-ff590... | [email protected] | www.wordfence.com | |
| plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.38/prev/inc/commons... | [email protected] | plugins.trac.wordpress.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Vijay (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-05-26T05:43:30.000Z | Vendor Notified |
| CNA | 2026-06-05T13:37:20.000Z | Disclosed |
There are currently no legacy QID mappings associated with this CVE.