An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().
Update Django to 4.2.24; Django to 5.1.12; Django to 5.2.6 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanDjango is subject to SQL injection through its column aliases affects Django (pip), Django (pip), Django (pip). Severity is high. An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().
AI coding agents often install or upgrade packages automatically in pip. A high vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|---|---|
| Djangopip | <4.2.24 | 4.2.24 |
| Django |
An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().
Update Django to 4.2.24; Django to 5.1.12; Django to 5.2.6 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanDjango is subject to SQL injection through its column aliases affects Django (pip), Django (pip), Django (pip). Severity is high. An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().
AI coding agents often install or upgrade packages automatically in pip. A high vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|---|---|
| Djangopip | <4.2.24 | 4.2.24 |
| Django |
| >=5.0a1,<5.1.12 |
| 5.1.12 |
| Djangopip | >=5.2a1,<5.2.6 | 5.2.6 |
|---|
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard| >=5.0a1,<5.1.12 |
| 5.1.12 |
| Djangopip | >=5.2a1,<5.2.6 | 5.2.6 |
|---|
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard