Path Traversal in Timwhitlock Loco Translate
CVE-2026-1921
- CVSS v3
- 4.9 Medium
- Public exploits
- None known
- EPSS
- 0.006 · 51.6th percentile
- Published
- 2026-05-05
The Loco Translate plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 2.8.2 via the `fsReference` AJAX route. This is due to the `findSourceFile()` method normalizing user-supplied `ref` paths containing `../` directory traversal sequences without validating that the resolved path remains within the intended bundle or content directory. This makes it possible for authenticated attackers, with Translator-level access and above (custom `loco_admin` capability required, granted to the `translator` role and administrators by default), to read arbitrary `.php`, `.js`, `.json`, and `.twig` files from the server filesystem outside the intended translation directory. Files named wp-config.php are excluded.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.9 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- High
PR:H - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- None
I:N - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.006, 51.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Timwhitlock Loco Translate — versions 0
Weakness classification (CWE)
References
- www.wordfence.com/threat-intel/vulnerabilities/id/f9ff3058-a08c-40ed-b756-81e70…
- plugins.trac.wordpress.org/browser/loco-translate/tags/2.8.1/src/ajax/FsReferen…
- plugins.trac.wordpress.org/browser/loco-translate/trunk/src/ajax/FsReferenceCon…
- plugins.trac.wordpress.org/browser/loco-translate/tags/2.8.1/src/ajax/FsReferen…
- plugins.trac.wordpress.org/browser/loco-translate/trunk/src/ajax/FsReferenceCon…
- plugins.trac.wordpress.org/changeset/3482475/loco-translate/trunk/tpl/admin/con…
- plugins.trac.wordpress.org/changeset