CVE-2026-126717 in Translate with Weglot Plugin
Summary
by MITRE • 11/27/2026
The Translate WordPress with Weglot 2.0 – Multilingual AI Translation plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 6.4.3 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. Successful exploitation requires the target site to permit anonymous comment posting (comment_registration disabled) and have at least one Weglot destination language active; on sites with comment moderation enabled, an administrator must approve the carrier and trigger comments before the injected script executes for subsequent visitors.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/27/2026
The Translate WordPress with Weglot plugin version 6.4.3 and earlier contains a critical stored cross-site scripting vulnerability within its handling of user-generated content. This flaw stems from insufficient input sanitization and output escaping mechanisms when processing data submitted through the comment parameter. The security architecture fails to adequately validate or encode special characters before storing them in the database, allowing malicious actors to inject arbitrary JavaScript code directly into the site's persistent storage layer rather than just transient session data.
This vulnerability enables unauthenticated attackers to embed executable scripts within comments posted on any page that utilizes this plugin for translation services. The operational impact is severe because the injected payload becomes part of the static content served to all subsequent visitors who view the affected pages. When a legitimate user accesses these compromised pages, their browser executes the malicious script in the context of the vulnerable website's domain. This allows attackers to steal session cookies, hijack administrative accounts, deface websites, or redirect users to phishing sites without requiring any prior authentication credentials against the WordPress installation itself.
Successful exploitation is contingent upon specific configuration settings on the target site. The vulnerability can only be triggered if the WordPress environment permits anonymous comment posting by having the comment_registration setting disabled. Additionally, at least one Weglot destination language must be active for the translation functionality to process and display the content in a manner that renders the injected script. In environments where comment moderation is enabled, an administrator must approve the malicious comment before it becomes visible to other users, which adds a slight delay but does not prevent eventual exploitation once approval occurs.
From a classification perspective, this issue aligns with CWE-79 Improper Neutralization of Input During Web Page Generation commonly known as Cross-site Scripting and specifically falls under the Stored XSS subcategory where malicious scripts are permanently stored within target databases or files. In terms of adversary tactics, this vulnerability supports techniques associated with ATT&CK ID T1059 Command and Scripting Interpreter for executing arbitrary code via browser-based scripting languages such as JavaScript. It also facilitates credential harvesting through cookie theft which relates to the Collection and Exfiltration phases of cyber attacks by enabling session hijacking scenarios that compromise user identity across the platform.
Mitigation strategies should prioritize immediate upgrading to version 6.4.4 or later where these sanitization flaws have been addressed with robust encoding practices for all output contexts involving translated content. Administrators running older versions must temporarily disable anonymous comment posting by setting comment_registration to true which prevents unauthenticated users from submitting the malicious payloads required to trigger this vulnerability. Implementing a Web Application Firewall can provide an additional layer of defense by filtering out requests containing known script injection patterns before they reach the application logic while also monitoring for anomalous activity indicative of exploitation attempts targeting multilingual plugins with insufficient input validation controls.