CVE-2022-0765
Published: 18 April 2022
Summary
CVE-2022-0765 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Loco Translate Project Loco Translate. Its CVSS base score is 5.4 (Medium).
Operationally, ranked in the top 13.7% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
The Loco Translate WordPress plugin before version 2.6.1 is affected by a stored cross-site scripting vulnerability. The root cause is insufficient sanitization of inline event handlers within source translation strings before they are rendered in the plugin's administrative editor interface. The issue is tracked as CWE-79 and carries a CVSS 3.1 score of 5.4.
Any authenticated user granted access to the plugin, such as those assigned the Translator or Administrator role, can inject arbitrary JavaScript payloads into translation strings. Successful exploitation results in persistent script execution in the browsers of other users who subsequently view the affected editor pages, enabling actions such as session hijacking or administrative interface manipulation within the same origin.
The referenced WPScan advisory identifies the flaw in versions prior to 2.6.1 and indicates that updating to the patched release addresses the input-handling deficiency. The EPSS score rose from a low baseline to a peak of 0.1081 before receding to its current value of 0.0274, indicating a period of increased exploitation interest after public disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-15824
Vulnerability details
The Loco Translate WordPress plugin before 2.6.1 does not properly remove inline events from elements in the source translation strings before outputting them in the editor in the plugin admin panel, allowing any user with access to the plugin (Translator…
more
and Administrator by default) to add arbitrary javascript payloads to the source strings leading to a stored cross-site scripting (XSS) vulnerability.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.