Description
The GPTranslate – Multilingual AI Translation for WordPress: Automatically Translate Websites plugin for WordPress is vulnerable to Stored Cross-Site Scripting via REST API Translation Storage in all versions up to, and including, 2.31 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The deterministically derived API key (sha256 of the site URL) is printed in the HTML source of every page via the JavaScript variable gptApiKey, meaning any unauthenticated visitor can retrieve the key and submit malicious translation payloads to the /wp-json/gptranslate/v1/request endpoint without any additional precondition.
Problem types
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
Any version
Timeline
| 2026-06-12: | Disclosed |
Credits
Hardeep
Chris
References
www.wordfence.com/...-5428-4b0e-bbe8-f1e1e68940ac?source=cve
plugins.trac.wordpress.org/...e/tags/2.31/assets/js/admin.js
plugins.trac.wordpress.org/...late/tags/2.31/gptranslate.php
plugins.trac.wordpress.org/...late/tags/2.31/gptranslate.php
plugins.trac.wordpress.org/...late/tags/2.31/gptranslate.php
plugins.trac.wordpress.org/...tags/2.27.5/assets/js/admin.js
plugins.trac.wordpress.org/...te/tags/2.27.5/gptranslate.php
plugins.trac.wordpress.org/...te/tags/2.27.5/gptranslate.php
plugins.trac.wordpress.org/...te/tags/2.27.5/gptranslate.php
plugins.trac.wordpress.org/...e/tags/2.32/assets/js/admin.js
plugins.trac.wordpress.org/...late/tags/2.32/gptranslate.php
plugins.trac.wordpress.org/...late/tags/2.32/gptranslate.php