PT-2021-16126 · WordPress · Translatepress
Apapedulimu
+1
·
Published
2021-09-27
·
Updated
2021-10-04
·
CVE-2021-24610
CVSS v3.1
4.8
Medium
| Vector | AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
TranslatePress WordPress plugin versions prior to 2.0.9
Description
The issue arises from the improper sanitization of translated strings. The
trp sanitize string function only removes script tags using a regex, but still allows other HTML tags and attributes to execute JavaScript, potentially leading to authenticated Stored Cross-Site Scripting issues.Recommendations
For versions prior to 2.0.9, update to version 2.0.9 or later to resolve the issue. As a temporary workaround, consider disabling the
trp sanitize string function until a patch is available. Restrict access to translated strings to minimize the risk of exploitation. Avoid using HTML tags and attributes in translated strings until the issue is resolved.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Translatepress