WordPress 7.1.1 Fixes Click2Shell Remote Code Execution Chain

WordPress 7.1.1 Fixes Click2Shell Remote Code Execution Chain

AI-generated editorial illustration; not a documentary photograph.

WordPress 7.1.1 addresses Click2Shell, a Core vulnerability chain that can lead to server-side PHP execution when a logged-in administrator visits a crafted link. Technical details and a proof-of-concept exploit were public by September 21, 2026, according to BleepingComputer.

How the chain works

Click2Shell combines a cross-site request forgery weakness with WordPress theme installation and preview behavior. A value from a theme-preview URL is interpreted first by the WordPress.org Themes API and then incorrectly by JavaScript in the administrator's browser, allowing a theme from the official catalog to be added without an explicit installation action.

The attacker does not need a WordPress account, an installation nonce or administrative access. However, the chain is not interaction-free: a currently logged-in administrator must open the malicious URL. Patchstack said Author and Editor accounts cannot trigger it because they lack permission to install themes.

Inactive themes can execute PHP

Researcher Paulos Yibelo of pwn.ai, who reported the issue to WordPress on August 22, found that an inactive theme could execute PHP when loaded through a Customizer preview. His demonstration paired the Core flaw with a vulnerable catalog theme, but he said WordPress Core 7.1.0 and earlier could be used to force-install any other vulnerable theme available in the catalog.

Successful code execution could expose user data and the wp-config.php file, which contains database credentials and authentication secrets. It could also allow file changes, rogue administrator accounts or injected malicious scripts.

An administrator session is required

Patchstack said targeted phishing is one route for getting an administrator to open the crafted link. An existing cross-site scripting vulnerability could also cause the administrator's browser to issue the required request. The source does not report active exploitation or assign the flaw an official vulnerability identifier.

Patch and mitigation

WordPress 7.1.1 fixes the Core issue by escaping the theme slug before it reaches the jQuery selector and limiting that selector to actual theme cards. Administrators unable to update immediately can block the forced installation stage by enabling DISALLOW_FILE_MODS, according to Patchstack, although installing the patched WordPress release removes the underlying Core weakness.

Source: WordPress Click2Shell flaw lets hackers execute PHP on the server

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *