PyMySQL versions up to 1.1.0 contain a critical SQL injection vulnerability (CVE-2024-36039) due to improper escaping of keys in JSON input by the escape_dict function. This flaw allows attackers to execute arbitrary SQL commands if untrusted JSON input is used. The vulnerability has a high severity CVSS score of 9.8 and is fixed in version 1.1.1.