github-advanced-security[bot] commented on code in PR #31358:
URL: https://github.com/apache/superset/pull/31358#discussion_r1876705479


##########
superset-frontend/packages/superset-ui-core/src/utils/html.tsx:
##########
@@ -84,7 +84,12 @@
 }
 
 export function removeHTMLTags(str: string): string {
-  return str.replace(/<[^>]*>/g, '');
+  let previous;
+  do {
+    previous = str;
+    str = str.replace(/<[^>]*>/g, '');

Review Comment:
   ## Polynomial regular expression used on uncontrolled data
   
   This [regular expression](1) that depends on [library input](2) may run slow 
on strings starting with '<' and with many repetitions of '<'.
   
   [Show more 
details](https://github.com/apache/superset/security/code-scanning/1235)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to