Polylang Connect for Elementor <= 2.5.5 - Unauthenticated Arbitrary Shortcode Execution via Language Switcher URL
- ID
- WPSEC-2026-4225
- Plugin
- Connect Polylang for Elementor (connect-polylang-elementor)
- Affected
- all versions before 2.6.0
- Remediation
- Update to 2.6.0 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 Medium · Affected versions Medium among sites WPSec scans, 2026-11-29
- Attack surface
- Polylang Connect for Elementor on WPSec AttackSurface
- Fix released
- Published
Description
The Connect Polylang for Elementor plugin for WordPress is vulnerable to arbitrary shortcode execution via the Language Switcher widget and the Language URL dynamic tag in all versions up to, and including, 2.5.5. This is due to Polylang language URLs being placed in content that do_shortcode() processes later, with square brackets left unencoded. On search and archive views these URLs carry the visitor's request URL and query string, and the plugin printed them with esc_url() only, which keeps raw square brackets when the query contains a second copy of the site origin. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes by crafting a request to a view where the widget or tag is rendered as part of post content.
References
- https://wpsec.com/vuln/WPSEC-2026-4225/
- https://plugins.svn.wordpress.org/connect-polylang-elementor/tags/2.6.0/
- https://wordpress.org/plugins/connect-polylang-elementor/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS