# Translate WordPress and go Multilingual – Weglot <= 6.4.2 - Unauthenticated Stored Cross-Site Scripting via Translated Link URLs

- **ID:** WPSEC-2026-1049
- **Plugin:** Translate WordPress with Weglot 2.0 – Multilingual AI Translation (`weglot`), https://wordpress.org/plugins/weglot/
- **Affected versions:** all versions before 6.4.3
- **Fixed in:** 6.4.3 (Update to 6.4.3 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 Medium, affected versions Medium (as of 2026-10-16)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/weglot
- **Fix released:** 2026-10-15
- **Published:** 2026-10-16
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1049/

## Description

The Translate WordPress with Weglot 2.0 plugin for WordPress is vulnerable to Stored Cross-Site Scripting via rewritten internal link URLs on translated pages in all versions up to, and including, 6.4.2, due to the plugin URL-decoding the path of internal links and writing the rewritten URL back into HTML attributes (link href, data-link, data-url, data-cart-url, form action, and canonical/next/prev/amphtml links) without output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute whenever a user opens a translated page. The attacker plants a percent-encoded URL in content shown on the site, such as the 'Website' field of a comment when the site accepts comments.

## References

- https://wpsec.com/vuln/WPSEC-2026-1049/
- https://plugins.svn.wordpress.org/weglot/tags/6.4.3/
- https://wordpress.org/plugins/weglot/

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

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.
