CVE-2026-7795
Received Received - Intake
Stored XSS in Click to Chat – WA Widget WordPress Plugin

Publication date: 2026-06-06

Last updated on: 2026-06-06

Assigner: Wordfence

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-06
Last Modified
2026-06-06
Generated
2026-06-06
AI Q&A
2026-06-06
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
click_to_chat wa_widget to 4.38 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The Click to Chat – WA Widget plugin for WordPress has a Stored Cross-Site Scripting (XSS) vulnerability in the 'num' parameter of its [chat] shortcode in all versions up to 4.38. This happens because user-supplied input is insufficiently escaped when embedded inside JavaScript string literals within HTML event-handler attributes. Although the plugin applies esc_attr() to the 'num' parameter, converting single quotes to the HTML entity ', this entity is decoded back to a literal single quote by browsers at runtime. This allows an attacker to break out of the JavaScript string context and execute arbitrary scripts.

Authenticated users with Contributor-level access or higher can exploit this vulnerability by injecting malicious scripts that execute whenever a user clicks the WhatsApp chat button rendered by the shortcode.


How can this vulnerability impact me? :

This vulnerability allows an attacker with Contributor-level access or above to inject arbitrary JavaScript code into pages via the WhatsApp chat button. When other users click this button, the malicious script executes in their browsers.

  • It can lead to theft of user credentials or session tokens.
  • It can enable unauthorized actions on behalf of users.
  • It can be used to deliver malware or redirect users to malicious sites.

Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart