VDB
Sign up
CRITICAL9.8

PYSEC-2026-502

PyMySQL SQL Injection vulnerability

Quick fix

PYSEC-2026-502 — pymysql: upgrade to the fixed version with the command below.

pip install --upgrade 'pymysql>=1.1.1'

Details

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

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pymysql
Introduced in: 0Fixed in: 1.1.1
Fixpip install --upgrade 'pymysql>=1.1.1'

References