CDLUC3 / ezid

CDLUC3 ezid
MIT License
11 stars 4 forks source link

Upgrade PyMySQL to resolve SQL Injection vulnerability #643

Closed jsjiang closed 1 month ago

jsjiang commented 1 month ago

Dependabot alerts:

PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.

Currently we have PyMySQL~=0.9.3

Update the requirements.txt and requirements-dev.txt files with the latest PyMySQL version:

PyMySQL~=1.1.1

jsjiang commented 1 month ago

Update both PyMySQL and aiomysql:

-aiomysql~=0.0.21
+aiomysql~=0.2.0

-PyMySQL~=0.9.3
+PyMySQL~=1.1.1
jsjiang commented 1 month ago

Upgraded in release v3.2.10