Vulnerability in Loco Translate — CVE-2026-5771
MediumSeverity
0.5%Estimated exploit probability
1,000,000+ sitesInstalls
2.8.5Fixed in
What to do now
Update Loco Translate to 2.8.5 or later.
Affected versions
- Everything up to and including 2.8.4
Affected: Loco Translate (plugin, loco-translate)
What the vulnerability is
The Loco Translate plugin for WordPress is vulnerable to Arbitrary File Write/Overwrite via Path Traversal in all versions up to, and including, 2.8.4. This is due to the normalize() function processing '..' segments in user-supplied paths without verifying that the resolved absolute path remains within the base directory. This makes it possible for authenticated attackers, with Custom+ level access and above, to write translation files to arbitrary locations on the filesystem.
Sources
- https://plugins.trac.wordpress.org/browser/loco-translate/tags/2.8.3/src/ajax/SaveController.php#L10
- https://plugins.trac.wordpress.org/browser/loco-translate/tags/2.8.3/src/ajax/SaveController.php#L16
- https://plugins.trac.wordpress.org/browser/loco-translate/tags/2.8.3/src/fs/File.php#L410
- https://plugins.trac.wordpress.org/changeset/3556744/loco-translate
- https://www.wordfence.com/threat-intel/vulnerabilities/id/f5bb1931-e593-48be-9ee1-aa08b2380535?source=cve