You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "pierrejeambrun (via GitHub)" <gi...@apache.org> on 2023/07/02 12:49:22 UTC

[GitHub] [airflow] pierrejeambrun commented on a diff in pull request #32303: Replace re with re2

pierrejeambrun commented on code in PR #32303:
URL: https://github.com/apache/airflow/pull/32303#discussion_r1249498015


##########
airflow/cli/commands/provider_command.py:
##########
@@ -17,7 +17,7 @@
 """Providers sub-commands."""
 from __future__ import annotations
 
-import re
+import re2 as re

Review Comment:
   re is vulnerable attacks. re2 does not allow exponential backtracking.
   
   You can find more info here:
   https://lists.apache.org/thread/lytmbn1xf9vwgwfwgp4vrm3vshn8p1tm



##########
airflow/cli/commands/provider_command.py:
##########
@@ -17,7 +17,7 @@
 """Providers sub-commands."""
 from __future__ import annotations
 
-import re
+import re2 as re

Review Comment:
   re is vulnerable to attacks. re2 does not allow exponential backtracking.
   
   You can find more info here:
   https://lists.apache.org/thread/lytmbn1xf9vwgwfwgp4vrm3vshn8p1tm



-- 
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: commits-unsubscribe@airflow.apache.org

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