TranslatePress – Translate Multilingual sites with AI Translation <= 3.4 - Unauthenticated Arbitrary Shortcode Execution via Language Switcher URL

High 7.3 CWE-94Fixed in 3.4.1
ID
WPSEC-2026-3893
Plugin
TranslatePress – Translate Multilingual sites with AI Translation (translatepress-multilingual)
Affected
from 2.5.1 before 3.4.1
Remediation
Update to 3.4.1 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness
CWE-94
Usage
Plugin High · Affected versions High among sites WPSec scans, 2026-11-25
Attack surface
TranslatePress – Translate Multilingual sites with AI Translation on WPSec AttackSurface
Fix released
Published

Description

The TranslatePress plugin for WordPress is vulnerable to arbitrary shortcode execution via the Language Switcher URL in versions 2.5.1 up to, and including, 3.4, due to language switcher links being built from the request URI without percent-encoding square brackets, which esc_url()/esc_url_raw() do not reliably encode (their bracket encoding is skipped when the query string repeats the URL's origin). When the Language Switcher block is rendered inside post content, before do_shortcode() runs on the_content, a literal shortcode placed in the URL is executed. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes via a crafted URL.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0