ADVISORIES

PyPA Advisory Database

PYSEC-2026-1766

pg8000 SQL injection vulnerability via a specially crafted Python list input

Details

SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.

Affected packages

EcosystemPackageAffected versions
PyPIpg8000
All versions before 1.31.5 (fixed in 1.31.5)

References