Loading advisory.
Loading advisory.
Django vulnerable to SQL injection via _connector keyword argument in QuerySet and Q objects.
An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8. The methods QuerySet.filter(), QuerySet.exclude(), and QuerySet.get(), and the class Q(), are subject to SQL injection when using a suitably crafted dictionary, with dictionary expansion, as the _connector…
Published 2025-11-05 15:09 UTC · Modified 2026-06-10 17:01 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| django | PyPI | >= 5.2a1, < 5.2.8 >= 5.0a1, < 5.1.14 < 4.2.26 >= 4.2, < 4.2.26 >= 5.1, < 5.1.14 >= 5.2, < 5.2.8 versions 5.2, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 5.2.5, 5.2.6, 5.2.7, 5.2a1, 5.2b1, 5.2rc1, 5.0, 5.0.1, 5.0.10, 5.0.11, 5.0.12, 5.0.13, 5.0.14, 5.0.2, 5.0.3 and 388 more | 5.2.8, 5.1.14, 4.2.26 | pip install --upgrade 'django>=5.2.8'pip install --upgrade 'django>=5.1.14'pip install --upgrade 'django>=4.2.26' |
An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8.
The methods QuerySet.filter(), QuerySet.exclude(), and QuerySet.get(), and the class Q(), are subject to SQL injection when using a suitably crafted dictionary, with dictionary expansion, as the _connector argument.
Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.
Django would like to thank cyberstan for reporting this issue.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.193 on 2026-11-24 to 0.195 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.193 | first score | v2026.06.15 |
| 2026-11-26 | 0.014 | 0.193 | v2026.06.15 |
| 2026-11-30 | 0.195 | 0.014 | v2026.06.15 |