CVE-2021-24610 TranslatePress < 2.0.9 - Authenticated Stored Cross-Site Scripting
Authenticated attackers can inject malicious scripts via translated strings in TranslatePress, potentially leading to session hijacking or site defacement.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-24610?
CVE-2021-24610 is a medium-severity cross-site scripting vulnerability in Unknown Translate Multilingual sites – TranslatePress, published on 27 Sep 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
The TranslatePress WordPress plugin before 2.0.9 does not implement a proper sanitisation on the translated strings. The 'trp_sanitize_string' function only removes script tag with a regex, still allowing other HTML tags and attributes to execute javascript, which could lead to authenticated Stored Cross-Site Scripting issues.
Weakness: CWE-79
Which versions are affected by CVE-2021-24610?
It affects 1 product.
Products include Cozmoslabs Translatepress.
How do I fix CVE-2021-24610?
No fix has been published for CVE-2021-24610 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-2021-24610 being exploited?
There is no known exploitation of CVE-2021-24610 in the wild and no public exploit code.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Unknown Translate Multilingual sites – TranslatePress
Sources
Also known as GHSA-79hx-hhr4-x2xv.