CVE-2026-137047: Click to Chat <= 4.47 - Unauthenticated Stored Cross-Site Scripting via 'position' Shortcode Attribute
The Click to Chat – HoliThemes plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'position' parameter in all versions up to, and including, 4.47 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This vulnerability only affects sites using the legacy interface, which is active when ccwoptions['number'] is set and htctcswitch['interface'] is not 'yes'; sites running exclusively the new interface are not affected. Exploitation by unauthenticated attackers requires that legacy Click to Chat interface retained (HTCTCISNEW='no'), AND a published post contains a core Comments block INSIDE its postcontent so core doblocks->doshortcode expands shortcodes in rendered comment text, AND the guest comment is auto-published (commentmoderation=0 and either commentpreviouslyapproved=0 or a prior approved comment from the same identity). On a default installation, where that is not configured, the vulnerability requires attackers with contributor-level access and above.
Affected Software
Event History
Frequently Asked Questions
Which sites are exposed to unauthenticated exploitation?
Only sites using the legacy Click to Chat interface are affected. The legacy interface is active when ccw_options['number'] is set and ht_ctc_switch['interface'] is not 'yes'; sites running exclusively the new interface are not affected.
What conditions allow an unauthenticated attacker to exploit this through comments?
The legacy interface must be retained (HT_CTC_IS_NEW='no'), a published post must contain a core Comments block inside post_content, and guest comments must be auto-published. Auto-publication requires comment_moderation=0 and either comment_previously_approved=0 or an earlier approved comment from the same identity.
Is a default WordPress configuration exposed to unauthenticated attack?
No. On a default installation, the required comment publication and rendering conditions are not configured; exploitation instead requires an attacker with contributor-level access or higher.
What can be done if updating is not immediately possible?
Use the new Click to Chat interface exclusively rather than retaining the legacy interface. Also avoid automatically publishing guest comments and review published posts for core Comments blocks that cause shortcodes in rendered comment text to be expanded.