# WP Telegram Widget and Join Link <= 2.2.16 - Unauthenticated Reflected Cross-Site Scripting via 'username' Parameter

- **ID:** WPSEC-2026-3658
- **Plugin:** WP Telegram Widget and Join Link (`wptelegram-widget`), https://wordpress.org/plugins/wptelegram-widget/
- **Affected versions:** from 1.6.0 before 2.2.17
- **Fixed in:** 2.2.17 (Update to 2.2.17 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wptelegram-widget
- **Fix released:** 2026-11-20
- **Published:** 2026-11-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3658/

## Description

The WP Telegram Widget and Join Link plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'username' parameter of the public widget embed view endpoint in all versions up to, and including, 2.2.16 due to insufficient input validation and output escaping. The username was only passed through sanitize_text_field and then placed unescaped into the URLs written into the href and form action attributes of the proxied channel widget HTML, so double quotes could break out of the attribute. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

## References

- https://wpsec.com/vuln/WPSEC-2026-3658/
- https://plugins.svn.wordpress.org/wptelegram-widget/tags/2.2.17/
- https://wordpress.org/plugins/wptelegram-widget/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3658/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
