What the vulnerability does
01Description
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.
Explanation of Vulnerability in Simple Terms
02Summary
GPTranslate versions 2.31 and earlier contain a cross-site scripting vulnerability that allows unauthenticated attackers to inject malicious scripts into the site. The vulnerability affects all visitors and can impact site integrity across multiple pages. Site administrators should update to a version newer than 2.31 as soon as possible.
What an attacker can do
03Attacker Capabilities
Inject malicious JavaScript that executes in visitors' browsers and affects site functionality.
Potential impact on your site
04Site Impact
Visitors' browsers may execute attacker-controlled scripts, potentially compromising user data or site reputation.
Conditions required to exploit
05Prerequisites
No authentication or user interaction required; attacker can exploit this remotely.
Key dates
06Disclosure timeline
June 13, 2026
CVE published
June 15, 2026
Record updated