CVE-2026-7795
Stored XSS in Click to Chat β WA Widget WordPress Plugin
Publication date: 2026-06-06
Last updated on: 2026-06-06
Assigner: Wordfence
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| click_to_chat | wa_widget | to 4.38 (inc) |
Helpful Resources
Exploitability
| 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.