{
  "id": "CVE-2025-59681",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-59681",
  "published_at": "2025-10-01T00:00:00Z",
  "vendor": "djangoproject",
  "product": "Django",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column aliases, when using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods (on MySQL and MariaDB).",
  "cwe": "CWE-89",
  "cpes": [
    "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1,
    "nvd": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "djangoproject",
        "product": "Django",
        "ranges": [
          "\u003e= 4.2, \u003c 4.2.25",
          "\u003e= 5.1, \u003c 5.1.13",
          "\u003e= 5.2, \u003c 5.2.7"
        ],
        "fixed_in": [
          "4.2.25",
          "5.1.13",
          "5.2.7"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Django to 4.2.25 or 5.1.13 or 5.2.7 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
