### [CVE-2021-24610](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-24610) ![](https://img.shields.io/static/v1?label=Product&message=Translate%20Multilingual%20sites%20%E2%80%93%20TranslatePress&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=2.0.9%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-79%20Cross-site%20Scripting%20(XSS)&color=brightgreen) ### 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. ### POC #### Reference - http://packetstormsecurity.com/files/164306/WordPress-TranslatePress-2.0.8-Cross-Site-Scripting.html - https://wpscan.com/vulnerability/b87fcc2f-c2eb-4e23-9757-d1c590f26d3f #### Github - https://github.com/20142995/nuclei-templates - https://github.com/ARPSyndicate/cvemon - https://github.com/apapedulimu/Learn-Source-Code-Review