CVE-2026-7795
Last modified
CVE-2026-7795 is a medium-severity vulnerability rated 6.4/10 on the CVSS scale. 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. EPSS estimates a 0.29% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-7795?
How severe is CVE-2026-7795?
How do I fix CVE-2026-7795?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-7786Jinan USR IOT Technology Limited (PUSR) USR-W610 RS232/485 t…9.8
- CVE-2026-7787IBM Langflow OSS 1.0.0 through 1.9.1 could allow an authenti…8.1
- CVE-2026-7788A security flaw has been discovered in Axle-Bucamp MCP-Docus…7.3
- CVE-2026-7790Uncontrolled Resource Consumption vulnerability in ninenines…7.5
- CVE-2026-7791Improper privilege management in the log rotation mechanism …8.5
- CVE-2026-7792The WPForms – Easy Form Builder for WordPress – Contact Form…5.3
- CVE-2026-7796The EmbedPress – PDF Embedder, Embed PDF viewer, YouTube Vid…6.4
- CVE-2026-7797The Appointment Booking Calendar — Simply Schedule Appointme…7.5
- CVE-2026-7798The FluentCRM – Email Newsletter, Automation, Email Marketin…5.4
- CVE-2026-7802The Frontend Admin by DynamiApps plugin for WordPress is vul…8.8
- CVE-2026-7803IBM Langflow OSS 1.0.0 through 1.10.0 could allow arbitrary …9.8
- CVE-2026-7805Rejected reason: ** REJECT ** DO NOT USE THIS CANDIDATE NUMB…
Are you affected by CVE-2026-7795?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
