# GPTranslate <= 2.34.13 - Unauthenticated Cross-Site Scripting via HTML Attribute Values in Server-Side Translated Pages

- **ID:** WPSEC-2026-0595
- **Plugin:** GPTranslate – Multilingual AI Translation Agent for WordPress: Translate Your Site with AI (`gptranslate`), https://wordpress.org/plugins/gptranslate/
- **Affected versions:** all versions before 2.34.14
- **Fixed in:** 2.34.14 (Update to 2.34.14 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 Low, affected versions Low (as of 2026-10-07)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gptranslate
- **Fix released:** 2026-10-04
- **Published:** 2026-10-07
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0595/

## Description

The GPTranslate plugin for WordPress is vulnerable to Cross-Site Scripting via HTML attribute values in pages rendered by the server-side translation feature with the DOMDocument or SimpleHTMLDOM engine in all versions up to, and including, 2.34.13. This is due to insufficient output escaping: the translated page is entity-decoded after its attribute values have been escaped. This makes it possible for unauthenticated attackers to inject arbitrary web scripts into translated pages that execute when a user accesses the affected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-0595/
- https://plugins.svn.wordpress.org/gptranslate/tags/2.34.14/
- https://wordpress.org/plugins/gptranslate/

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

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.
