Impact
The vulnerability arises from insufficient escaping of the 'num' shortcode attribute in the Click to Chat – HoliThemes WordPress plugin. The esc_attr() call converts single quotes into ' entities, which are decoded back into literal quotes when inserted into a JavaScript string within an HTML onclick attribute. This allows an authenticated user with Contributor or higher role to inject arbitrary JavaScript that will run when a visitor clicks the WhatsApp chat button, leading to cross‑site scripting that can steal session cookies, deface content, or perform other client‑side attacks. The flaw does not provide server‑side code execution, but it facilitates arbitrary script execution in the context of a site visitor.
Affected Systems
The affected product is the Click to Chat – HoliThemes WordPress plugin. All versions up to and including 4.38, and likely 4.39, are vulnerable. Sites running these versions should audit WordPress installations for this plugin and review the presence of [chat] shortcodes with the 'num' attribute.
Risk and Exploitability
The CVSS score of 6.4 indicates a moderate severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, suggesting a lower immediate threat. However, the requirement for only authenticated Contributor-level access makes the exploit feasible for site administrators or users with elevated roles. Attackers can generate payloads via the shortcode, and the bug is straightforward to exploit once the shortcodes are present. The risk is therefore moderate but actionable, and the vulnerability can be mitigated by updating the plugin or limiting user privileges.
OpenCVE Enrichment