Skip to content

Commit 1f21c60

Browse files
Potential fix for code scanning alert no. 2: XML internal entity expansion
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 7b30f08 commit 1f21c60

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

server/controller/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from model.workflows import *
22
from flask import request, make_response, Blueprint
3-
import xml.etree.ElementTree as ET
3+
import defusedxml.ElementTree as ET
44

55
workFlow = Blueprint('workflow', __name__)
66
workFlowModel = WorkFlowModel()

server/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ Flask==2.0.1
33
python-dotenv==0.19.0
44
pymongo==3.12.0
55
gunicorn==20.0.4
6-
flask-cors==3.0.10
6+
flask-cors==3.0.10
7+
defusedxml==0.7.1

0 commit comments

Comments
 (0)