Loco Translate Cross-Site Request Forgery Vulnerability Allowing Remote Code Execution

Vulnerability

A Cross-Site Request Forgery (CSRF) vulnerability has been identified in the Loco Translate plugin for WordPress, affecting all versions through 2.8.5. The issue arises from inadequate nonce validation in the 'execTemplate' function, enabling unauthenticated attackers to execute arbitrary PHP code on the server. Exploitation involves sending a forged request with a 'template' parameter that includes a php://filter stream wrapper URI, bypassing path validation. This crafted request can trick a site administrator into inadvertently executing the malicious code.

Impact

Successful exploitation allows for remote code execution on the server where WordPress is hosted.

Reproduction

To reproduce this vulnerability, an attacker must first create a forged request that includes a php://filter stream wrapper URI as the 'template' parameter. This request should be sent to a WordPress site with the Loco Translate plugin installed, targeting the 'execTemplate' function. The attacker must then trick an administrator into clicking a link that activates the forged request, such as through a social engineering tactic or by embedding the link in a location where the admin is likely to click it.

Remediation

Users are advised to update the Loco Translate plugin to version 2.8.6 or later, where this vulnerability has been patched.

Added: Jul 16, 2026, 9:53 AM
Updated: Jul 16, 2026, 9:53 AM

Vulnerability Rating

Custom Algorithm
spread
7.6
impact
10.0
exploitability
6.8
remediation
7.7
relevance
9.8
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.