Python Library Django 5.2.x < 5.2.14 / 6.0.x < 6.0.5 Multiple Vulnerabilities

medium Nessus Plugin ID 313213

Synopsis

A Python library installed on the remote host is affected by multiple vulnerabilities.

Description

The detected version of the Django Python package is 5.2.x prior to 5.2.14 or 6.0.x prior to 6.0.5. It is, therefore, affected by multiple vulnerabilities, including:

- ASGI requests with a missing or understated Content-Length header can bypass the FILE_UPLOAD_MAX_MEMORY_SIZE limit, potentially loading large files into memory and causing service degradation. (CVE-2026-5766)

- django.middleware.cache.UpdateCacheMiddleware erroneously caches requests where the Vary header contained an asterisk ('*'). This can lead to private data being stored and served. (CVE-2026-6907)

- Response headers do not vary on cookies if a session is not modified, but SESSION_SAVE_EVERY_REQUEST is True.
A remote attacker can steal a user's session after that user visits a cached public page. (CVE-2026-35192)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Django version 5.2.14, 6.0.5 or later.

See Also

https://www.djangoproject.com/weblog/2026/may/05/security-releases/

Plugin Details

Severity: Medium

ID: 313213

File Name: python_django_6_0_5.nasl

Version: 1.1

Type: Local

Agent: windows, macosx, unix

Family: Misc.

Published: 5/8/2026

Updated: 5/8/2026

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: High

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2026-35192

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Vulnerability Information

CPE: cpe:/a:djangoproject:django

Patch Publication Date: 5/5/2026

Vulnerability Publication Date: 5/5/2026

Reference Information

CVE: CVE-2026-35192, CVE-2026-5766, CVE-2026-6907

IAVA: 2026-A-0427