zc_plugin_dm icon indicating copy to clipboard operation
zc_plugin_dm copied to clipboard

CVE-2025-59681 (High) detected in django-4.2.22-py3-none-any.whl

Open mend-bolt-for-github[bot] opened this issue 1 month ago • 0 comments

CVE-2025-59681 - High Severity Vulnerability

Vulnerable Library - django-4.2.22-py3-none-any.whl

A high-level Python web framework that encourages rapid development and clean, pragmatic design.

Library home page: https://files.pythonhosted.org/packages/dc/17/6afcbac3575992b22fda1ae7fffcdff15ff24d1aff69b3d36876bc0a47eb/django-4.2.22-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /tmp/ws-ua_20250619225906_JOHPWI/python_PXNJNQ/202506192259101/env/lib/python3.9/site-packages/django-4.2.22.dist-info

Dependency Hierarchy:

  • :x: django-4.2.22-py3-none-any.whl (Vulnerable Library)

Found in HEAD commit: 41f949b863ead7c74b72a01845dbe0d88c24a364

Found in base branch: main

Vulnerability Details

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).

Publish Date: 2025-10-01

URL: CVE-2025-59681

CVSS 3 Score Details (7.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: Low
    • Availability Impact: None
For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-hpr9-3m2g-3j9p

Release Date: 2025-10-01

Fix Resolution: 4.2.25


Step up your Open Source Security Game with Mend here