mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[5.1.x] Fixed CVE-2024-42005 -- Mitigated QuerySet.values() SQL injection attacks against JSON fields.
Thanks Eyal (eyalgabay) for the report.
This commit is contained in:
committed by
Sarah Boyce
parent
bd807c0c25
commit
e2583fbc2e
@@ -111,3 +111,10 @@ class UUID(models.Model):
|
||||
|
||||
class Text(models.Model):
|
||||
name = models.TextField()
|
||||
|
||||
|
||||
class JSONFieldModel(models.Model):
|
||||
data = models.JSONField(null=True)
|
||||
|
||||
class Meta:
|
||||
required_db_features = {"supports_json_field"}
|
||||
|
||||
Reference in New Issue
Block a user