PyMySQL through 1.1.0 allows SQL injection if used with untrusted JSON input because keys are not escaped by escape_dict.
{
"versions": [
{
"introduced": "0"
},
{
"last_affected": "1.1.0"
}
]
}