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.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade py3-django | Nov 14, 2025 | Nov 5, 2025 |
| Debian | — | Upgrade python-django | Dec 31, 2025 | Dec 31, 2025 |
| Django | — | Upgrade Django to the latest version | Nov 10, 2025 | Nov 5, 2025 |
| Redhat_linux | — | Upgrade python3-bracexUpgrade python3.11-distlibUpgrade python3-mypy-extensionsUpgrade bindepUpgrade python3.11-galaxy-ngUpgrade python3.11-subprocess-teeUpgrade automation-controllerUpgrade python3-ruamel-yaml-clibUpgrade python-onigurumacffi-debugsourceUpgrade python3-rpds-pyUpgrade python3-subprocess-teeUpgrade toxUpgrade automation-gateway-configUpgrade python3.11-typing-extensionsUpgrade python3-pytest-plusUpgrade automation-platform-uiUpgrade python3-rfc3339-validatorUpgrade ansible-builderUpgrade python3-lazy-object-proxyUpgrade python-lazy-object-proxy-debugsourceUpgrade python3-virtualenvUpgrade python3.11-tox-ansibleUpgrade python3-ruamel-yaml-clib-debuginfoUpgrade python3.11-django-ansible-base+redis_clientUpgrade python3-referencingUpgrade python3-pytest-sugarUpgrade python3-jsonschema-pathUpgrade python3-pytest-ansibleUpgrade python3-werkzeugUpgrade python3.11-ruamel-yaml-clib-debuginfoUpgrade python3-markupsafeUpgrade python3-isodateUpgrade python3-jsonschema-specificationsUpgrade automation-controller-uiUpgrade python-ruamel-yaml-clib-debugsourceUpgrade python3-parseUpgrade automation-eda-controller-baseUpgrade receptorctlUpgrade python3-coloramaUpgrade python3-daemonUpgrade ansible-dev-tools+serverUpgrade python3-cachetoolsUpgrade python3-iniconfigUpgrade python3-click-help-colorsUpgrade python3-pytest-xdistUpgrade automation-gatewayUpgrade receptor-debuginfoUpgrade python3.11-django-ansible-base+activitystreamUpgrade python3-richUpgrade python3-rpds-py-debuginfoUpgrade automation-eda-controller-base-servicesUpgrade python3.11-ruamel-yaml-clibUpgrade python3.11-djangoUpgrade python3.11-galaxy-importerUpgrade python3-openapi-coreUpgrade python3-tox-ansibleUpgrade yamllintUpgrade python3.11-pluggyUpgrade python3-ansible-compatUpgrade python3-filelockUpgrade python3-distlibUpgrade python3-termcolorUpgrade python3-openapi-schema-validatorUpgrade python3-pygmentsUpgrade python3.11-django-ansible-base+resource_registryUpgrade python3-parsleyUpgrade python3.11-pytest-xdistUpgrade python3-typing-extensionsUpgrade ansible-navigatorUpgrade python3.11-django-ansible-base+authenticationUpgrade python3-pathspecUpgrade python3.11-ansible-compatUpgrade python3-pathableUpgrade python3-more-itertoolsUpgrade python3-openapi-spec-validatorUpgrade automation-gateway-serverUpgrade python3-platformdirsUpgrade python3-enrichUpgrade ansible-signUpgrade automation-controller-venv-towerUpgrade python3-wheel-wheelUpgrade python3-pytestUpgrade python3-pyproject-apiUpgrade python3.11-pytest-ansibleUpgrade python3-execnetUpgrade python3.11-django-ansible-base+rbacUpgrade ansible-coreUpgrade python3-setuptools-wheelUpgrade python3-ruamel-yamlUpgrade python3-clickUpgrade python3.11-django-ansible-base+api_documentationUpgrade automation-eda-controller-worker-servicesUpgrade python3.11-execnetUpgrade python3.11-django-ansible-base+channel_authUpgrade python3.11-django-ansible-baseUpgrade automation-eda-controller-event-stream-servicesUpgrade python3.11-pytestUpgrade python3-jsonschemaUpgrade python3.11-django-ansible-base+rest_filtersUpgrade python3-blackUpgrade python3-wcmatchUpgrade python3-sqlparseUpgrade python3-commonmarkUpgrade automation-controller-serverUpgrade python3-lazy-object-proxy-debuginfoUpgrade automation-hubUpgrade ansible-dev-toolsUpgrade python3-djangoUpgrade automation-controller-cliUpgrade python3.11-django-ansible-base+jwt_consumerUpgrade receptor-debugsourceUpgrade python3-chardetUpgrade automation-eda-controllerUpgrade ansible-creatorUpgrade python3-gunicornUpgrade moleculeUpgrade python3-onigurumacffi-debuginfoUpgrade python3-onigurumacffiUpgrade python3-ansible-runnerUpgrade python3-pluggyUpgrade python3-markupsafe-debuginfoUpgrade python3-lockfileUpgrade python3-pbrUpgrade python-markupsafe-debugsourceUpgrade python3.11-gunicornUpgrade python3.11-django-ansible-base+feature_flagsUpgrade ansible-lintUpgrade ansible-dev-environmentUpgrade receptorUpgrade python3-asgirefUpgrade python-rpds-py-debugsourceUpgrade python3-gnupgUpgrade python3.11-django-ansible-base+oauth2_providerUpgrade python3.11-ruamel-yaml-clib-debugsourceUpgrade ansible-runner | Dec 12, 2025 | Nov 5, 2025 |
| Suse | — | Upgrade python3-django | Dec 5, 2025 | Dec 5, 2025 |
| Ubuntu | — | Upgrade python3-django (Ubuntu Pro)Upgrade python3-django | Nov 6, 2025 | Nov 5, 2025 |
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub