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
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-77927ClipBucket v5 before 5.5.3-#182 contains a blind SQL injecti…6.5
- CVE-2026-77928ClipBucket v5 before 5.5.3-#182 contains a blind SQL injecti…6.5
- CVE-2026-77929ClipBucket v5 before 5.5.3-#182 contains a file upload vulne…8.8
- CVE-2026-77939Flextype CMS through v1.0.0-dev contains an expression langu…6.5
- CVE-2026-77945A vulnerability was found in TRENDnet TEW-821DAP 2.2.01b05. …7.4
- CVE-2026-77946A vulnerability was determined in TRENDnet TEW-821DAP 2.2.01…10
- CVE-2026-77950Generation of Error Message Containing Sensitive Information…6.3
- CVE-2026-77955In NLnet Labs Unbound 1.13.2 up to and including 1.26.1, a v…4.4
- CVE-2026-77956Improper Control of Generation of Code (Code Injection) vuln…8.9
- CVE-2026-7796The EmbedPress – PDF Embedder, Embed PDF viewer, YouTube Vid…6.4
- CVE-2026-77960Bransys ELD is shipped with hardcoded MQTT credentials, whic…5.3
- CVE-2026-77966The affected Ebyte product does not provide separation bet…8.8
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
