CVE-2026-7795
Click to Chat <= 4.39 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'num' Shortcode Parameter
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.
INFO
Published Date :
June 6, 2026, 4:17 a.m.
Last Modified :
July 23, 2026, 7:10 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the Click to Chat – WA Widget plugin to the latest version.
- Ensure user input is properly sanitized before use.
- Review JavaScript string literal and event-handler attribute contexts.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-7795.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-7795 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-7795
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-7795 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-7795 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Jul. 23, 2026
Action Type Old Value New Value Added Translation Title: plugin de WordPress Click to Chat, Description: El plugin Click to Chat - WA Widget para WordPress es vulnerable a Stored Cross-Site Scripting a través del parámetro 'num' del shortcode [chat] en todas las versiones hasta la 4.38, inclusive. Esto se debe a un escape insuficiente al incrustar valores de atributos de shortcode proporcionados por el usuario dentro de literales de cadena de JavaScript que luego se colocan en atributos de gestor de eventos HTML. La función CCW_Shortcode::shortcode() aplica esc_attr() al parámetro 'num' (línea 157), lo que convierte las comillas simples en la entidad HTML '. Este valor codificado como entidad se interpola directamente en una cadena de llamada a window.open() de JavaScript delimitada por comillas simples (línea 194/221), y esa cadena completa se coloca textualmente en un atributo onclick de HTML en los archivos de plantilla de estilo (por ejemplo, sc-style-1.php línea 6). Debido a que los navegadores decodifican HTML los valores de los atributos de evento antes de ejecutar el JavaScript incrustado, las entidades ' se decodifican de nuevo a comillas simples literales en tiempo de ejecución, lo que permite que la carga inyectada escape del contexto de la cadena de JavaScript y ejecute código arbitrario. Esto hace posible que atacantes autenticados con acceso de nivel Colaborador y superior inyecten scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario haga clic en el botón de chat de WhatsApp renderizado por el shortcode [chat]. -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'holithemes', 'product': 'Click to Chat – HoliThemes', 'versions': [{'status': 'affected', 'version': '0', 'versionType': 'semver', 'lessThanOrEqual': '4.39'}], 'defaultStatus': 'unaffected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-7795', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-06-06T11:38:34.115122Z'} -
New CVE Received by [email protected]
Jun. 06, 2026
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N Added CWE CWE-79 Added Reference https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.38/prev/inc/class-ccw-shortcode.php#L157 Added Reference https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.38/prev/inc/class-ccw-shortcode.php#L221 Added Reference https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.38/prev/inc/commons/styles-list-sc/sc-style-1.php#L6 Added Reference https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.39/prev/inc/class-ccw-shortcode.php#L157 Added Reference https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.39/prev/inc/class-ccw-shortcode.php#L221 Added Reference https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.39/prev/inc/commons/styles-list-sc/sc-style-1.php#L6 Added Reference https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/class-ccw-shortcode.php#L157 Added Reference https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/class-ccw-shortcode.php#L221 Added Reference https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/commons/styles-list-sc/sc-style-1.php#L6 Added Reference 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&sfp_email=&sfph_mail= Added Reference https://www.wordfence.com/threat-intel/vulnerabilities/id/60440b26-1c0b-4fd0-a74a-ff5900d0e9b8?source=cve