# GSpeech TTS <= 3.23.1 - Unauthenticated Reflected Cross-Site Scripting via Referer Header

- **ID:** WPSEC-2026-4066
- **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-4066/

## Description

The GSpeech TTS plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the HTTP Referer header in all versions up to, and including, 3.23.1, due to the referer value being placed unescaped inside a single-quoted JavaScript string in the inline script that the Cloud widget front-end loader adds to front-end pages when a Cloud widget is connected. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute in a victim's browser when the victim follows a link from an attacker-controlled page that sends a crafted referrer. On sites that use page caching, an attacker can send the crafted header directly so that the injected script is cached and served to other visitors.

## References

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

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

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.
