# GPTranslate <= 2.35 - Unauthenticated Stored Cross-Site Scripting via Entity-Encoded Translation Values and Page Content in Server-Side Translated Pages

- **ID:** WPSEC-2026-4728
- **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.36
- **Fixed in:** 2.36 (Update to 2.36 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-06)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gptranslate
- **Fix released:** 2026-12-05
- **Published:** 2026-12-06
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4728/

## Description

The GPTranslate plugin for WordPress is vulnerable to Stored Cross-Site Scripting via translation values submitted to the public 'storetranslations' task and via entity-encoded text in pages rendered by the server-side translation feature (DOMDocument and SimpleHTMLDOM methods) in all versions up to, and including, 2.35. This is due to the server-side translation renderer decoding every HTML entity of the finished page with html_entity_decode(), which turns entity-encoded markup such as &lt;img onerror=...&gt; back into live tags, combined with translation values that were only passed through wp_strip_all_tags() and left entity-encoded markup intact. The translated title was also copied into the og:title, twitter:title and dc:title meta attributes without attribute escaping. This is a bypass of the fix for CVE-2026-103309. This makes it possible for unauthenticated attackers to inject arbitrary web scripts into translated pages that will execute whenever a user accesses an affected page.

## References

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

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

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.
