Security Alert Summary
The Loco Translate plugin for WordPress contains a path traversal vulnerability that allows authenticated users with Custom+ level access (and above) to write or overwrite files outside the intended translations directory. The issue is caused by a normalize() function that processes ‘..’ segments in user-supplied paths without ensuring the resolved path remains within the plugin’s base directory.
CVE Details
- CVE ID: CVE-2026-5771
- Affected component: Loco Translate plugin for WordPress
- Affected versions: All versions up to and including 2.8.4
- Published: November 28, 2026 at 12:17:42 PM UTC
- Last modified: November 28, 2026 at 12:17:42 PM UTC
- CVSS v3.1: Base Score 4.3 (MEDIUM) — Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- Authentication / Privileges / User Interaction: Authentication required. Privileges Required: LOW (attacker must have Custom+ level access or higher). User Interaction: NONE.
- Primary impact: Confidentiality: NONE; Integrity: LOW; Availability: NONE
- Weakness (CWE): CWE-22 (Path Traversal)
Technical Details
According to the report, the plugin’s normalize() function processes path segments supplied by an authenticated user but fails to verify that the resolved absolute path remains within the plugin’s intended base directory. By including “..” segments in the user-supplied path, an attacker with sufficient privileges can perform path traversal and cause the application to write or overwrite files at arbitrary filesystem locations. The practical impact described is the ability to write translation files to arbitrary locations.
This is an arbitrary file write/overwrite vulnerability arising from insufficient validation of path traversal sequences. The description identifies the normalization logic as the root cause; no additional code paths or exploits are named beyond that behavior.
How This Could Impact Your Website
In a multi-user WordPress environment, this vulnerability could be abused by an authenticated contributor or external contractor who has Custom+ level access to the translation interface. A plausible scenario: an internal editor or contractor uses the Loco Translate interface and supplies paths containing “..” segments, causing translation files to be written outside the expected directory. The result could be unauthorized modification of files that affect site behavior or disclosure of files if placed in web-accessible locations.
Practical consequences include increased risk of targeted phishing or social engineering if an attacker can place files that expose or alter email templates or content; or localized integrity loss where specific files are modified. The CVSS impact focuses on integrity impact (LOW), not full confidentiality or availability compromise. If you’re unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review.
Recommended Actions
- Update the affected plugin as soon as a patched version is available.
- Audit and reduce unnecessary user roles, especially contributors and other non-admin roles with write access to translations.
- Enforce strong passwords and enable two-factor authentication for editors and administrators.
- Remove unused or unmaintained plugins.
- Monitor site activity and file changes for unusual behavior or unexpected file writes.
If you’d like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.
References
- 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