CVE-2022-0765 Loco Translate < 2.6.1 - Authenticated Stored Cross-Site Scripting
Authenticated users can inject arbitrary JavaScript into translation strings, leading to stored XSS in the admin panel.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2022-0765?
CVE-2022-0765 is a medium-severity cross-site scripting vulnerability in Unknown Loco Translate, published on 18 Apr 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
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 and Administrator by default) to add arbitrary javascript payloads to the source strings leading to a stored cross-site scripting (XSS) vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2022-0765?
It affects 1 product.
Products include Loco Translate Project Loco Translate.
How do I fix CVE-2022-0765?
No fix has been published for CVE-2022-0765 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-0765 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-0765 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in Unknown Loco Translate
Sources
Also known as GHSA-pr4c-mq97-968p.