CVE-2026-7795 (GCVE-0-2026-7795)
Vulnerability from cvelistv5
Published
2026-06-06 02:28
Modified
2026-06-06 11:48
Severity ?
VLAI Severity ?
EPSS score ?
CWE
- CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Summary
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.
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| holithemes | Click to Chat – HoliThemes |
Version: 0 ≤ 4.39 |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-7795",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-06-06T11:38:34.115122Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-06-06T11:48:08.795Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Click to Chat \u2013 HoliThemes",
"vendor": "holithemes",
"versions": [
{
"lessThanOrEqual": "4.39",
"status": "affected",
"version": "0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Vijay"
}
],
"descriptions": [
{
"lang": "en",
"value": "The Click to Chat \u2013 WA Widget plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the [chat] shortcode \u0027num\u0027 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 \u0027num\u0027 parameter (line 157), which converts single quotes to the HTML entity \u0026#039;. 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 \u0026#039; 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."
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 6.4,
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79 Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-06-06T02:28:35.712Z",
"orgId": "b15e7b5b-3da4-40ae-a43c-f7aa60e62599",
"shortName": "Wordfence"
},
"references": [
{
"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/60440b26-1c0b-4fd0-a74a-ff5900d0e9b8?source=cve"
},
{
"url": "https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/class-ccw-shortcode.php#L157"
},
{
"url": "https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/commons/styles-list-sc/sc-style-1.php#L6"
},
{
"url": "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"
},
{
"url": "https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.39/prev/inc/class-ccw-shortcode.php#L157"
},
{
"url": "https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/class-ccw-shortcode.php#L221"
},
{
"url": "https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.39/prev/inc/class-ccw-shortcode.php#L221"
},
{
"url": "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"
},
{
"url": "https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.38/prev/inc/class-ccw-shortcode.php#L157"
},
{
"url": "https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.38/prev/inc/class-ccw-shortcode.php#L221"
},
{
"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=\u0026sfph_mail=\u0026reponame=\u0026old=3557482%40click-to-chat-for-whatsapp\u0026new=3557482%40click-to-chat-for-whatsapp\u0026sfp_email=\u0026sfph_mail="
}
],
"timeline": [
{
"lang": "en",
"time": "2026-05-26T05:43:30.000Z",
"value": "Vendor Notified"
},
{
"lang": "en",
"time": "2026-06-05T13:37:20.000Z",
"value": "Disclosed"
}
],
"title": "Click to Chat \u003c= 4.39 - Authenticated (Contributor+) Stored Cross-Site Scripting via \u0027num\u0027 Shortcode Parameter"
}
},
"cveMetadata": {
"assignerOrgId": "b15e7b5b-3da4-40ae-a43c-f7aa60e62599",
"assignerShortName": "Wordfence",
"cveId": "CVE-2026-7795",
"datePublished": "2026-06-06T02:28:35.712Z",
"dateReserved": "2026-05-04T19:03:00.750Z",
"dateUpdated": "2026-06-06T11:48:08.795Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2026-7795\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-06-06T11:38:34.115122Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-06-06T11:48:04.115Z\"}}], \"cna\": {\"title\": \"Click to Chat \u003c= 4.39 - Authenticated (Contributor+) Stored Cross-Site Scripting via \u0027num\u0027 Shortcode Parameter\", \"credits\": [{\"lang\": \"en\", \"type\": \"finder\", \"value\": \"Vijay\"}], \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 6.4, \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N\"}}], \"affected\": [{\"vendor\": \"holithemes\", \"product\": \"Click to Chat \\u2013 HoliThemes\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.39\"}], \"defaultStatus\": \"unaffected\"}], \"timeline\": [{\"lang\": \"en\", \"time\": \"2026-05-26T05:43:30.000Z\", \"value\": \"Vendor Notified\"}, {\"lang\": \"en\", \"time\": \"2026-06-05T13:37:20.000Z\", \"value\": \"Disclosed\"}], \"references\": [{\"url\": \"https://www.wordfence.com/threat-intel/vulnerabilities/id/60440b26-1c0b-4fd0-a74a-ff5900d0e9b8?source=cve\"}, {\"url\": \"https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/class-ccw-shortcode.php#L157\"}, {\"url\": \"https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/commons/styles-list-sc/sc-style-1.php#L6\"}, {\"url\": \"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\"}, {\"url\": \"https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.39/prev/inc/class-ccw-shortcode.php#L157\"}, {\"url\": \"https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/trunk/prev/inc/class-ccw-shortcode.php#L221\"}, {\"url\": \"https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.39/prev/inc/class-ccw-shortcode.php#L221\"}, {\"url\": \"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\"}, {\"url\": \"https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.38/prev/inc/class-ccw-shortcode.php#L157\"}, {\"url\": \"https://plugins.trac.wordpress.org/browser/click-to-chat-for-whatsapp/tags/4.38/prev/inc/class-ccw-shortcode.php#L221\"}, {\"url\": \"https://plugins.trac.wordpress.org/changeset?sfp_email=\u0026sfph_mail=\u0026reponame=\u0026old=3557482%40click-to-chat-for-whatsapp\u0026new=3557482%40click-to-chat-for-whatsapp\u0026sfp_email=\u0026sfph_mail=\"}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"The Click to Chat \\u2013 WA Widget plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the [chat] shortcode \u0027num\u0027 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 \u0027num\u0027 parameter (line 157), which converts single quotes to the HTML entity \u0026#039;. 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 \u0026#039; 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.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-79\", \"description\": \"CWE-79 Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)\"}]}], \"providerMetadata\": {\"orgId\": \"b15e7b5b-3da4-40ae-a43c-f7aa60e62599\", \"shortName\": \"Wordfence\", \"dateUpdated\": \"2026-06-06T02:28:35.712Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2026-7795\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-06-06T11:48:08.795Z\", \"dateReserved\": \"2026-05-04T19:03:00.750Z\", \"assignerOrgId\": \"b15e7b5b-3da4-40ae-a43c-f7aa60e62599\", \"datePublished\": \"2026-06-06T02:28:35.712Z\", \"assignerShortName\": \"Wordfence\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…