GPTranslate <= 2.31 - Unauthenticated Stored Cross-Site Scripting via REST API Translation Storage
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- john-dagelmore GPTranslate – Multilingual AI Translation for WordPress: Automatically Translate Websites
through 2.31
References 12
plugins.trac.wordpress.org
- browser/gptranslate/tags/2.31/assets/js/admin.js#L1
- browser/gptranslate/tags/2.31/gptranslate.php#L3654
- browser/gptranslate/tags/2.31/gptranslate.php#L3578
- browser/gptranslate/tags/2.31/gptranslate.php#L1134
- browser/gptranslate/tags/2.27.5/assets/js/admin.js#L1
- browser/gptranslate/tags/2.27.5/gptranslate.php#L3654
- browser/gptranslate/tags/2.27.5/gptranslate.php#L3578
- browser/gptranslate/tags/2.27.5/gptranslate.php#L1134
- browser/gptranslate/tags/2.32/assets/js/admin.js#L1
- browser/gptranslate/tags/2.32/gptranslate.php#L3574
- browser/gptranslate/tags/2.32/gptranslate.php#L1104