VDB
Sign up
—

PYSEC-2020-35

Quick fix

PYSEC-2020-35 — django: upgrade to the fixed version with the command below.

pip install --upgrade 'django>=eb31d845323618d688ad429479c6dda973056136'

Details

Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection if untrusted data is used as a StringAgg delimiter (e.g., in Django applications that offer downloads of data as a series of rows with a user-specified column delimiter). By passing a suitably crafted delimiter to a contrib.postgres.aggregates.StringAgg instance, it was possible to break escaping and inject malicious SQL.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/django
Introduced in: 0Fixed in: eb31d845323618d688ad429479c6dda973056136
Fixpip install --upgrade 'django>=eb31d845323618d688ad429479c6dda973056136'

References