# GSpeech TTS <= 3.23.1 - Unauthenticated DOM-Based Cross-Site Scripting via Selected Text

- **ID:** WPSEC-2026-4065
- **Plugin:** GSpeech TTS – WordPress Text To Speech Plugin (`gspeech`), https://wordpress.org/plugins/gspeech/
- **Affected versions:** all versions before 3.23.2
- **Fixed in:** 3.23.2 (Update to 3.23.2 or later.)
- **Severity:** Medium 4.7 (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gspeech
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4065/

## Description

The GSpeech TTS plugin for WordPress is vulnerable to DOM-Based Cross-Site Scripting via selected page text in the Legacy 'Speak Any Text' player in all versions up to, and including, 3.23.1, due to the plugin's front-end script taking the plain text of the visitor's selection and inserting it into the player tooltip with jQuery's .html(). This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute when a victim selects attacker-supplied text that the page shows as plain text, such as a comment containing HTML-like text.

## References

- https://wpsec.com/vuln/WPSEC-2026-4065/
- https://plugins.svn.wordpress.org/gspeech/tags/3.23.2/
- https://wordpress.org/plugins/gspeech/

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

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.
