Skip to main content

Django CVE-2026-7666

| EUVDEUVD-2026-34087 LOW
Cleartext Transmission of Sensitive Information (CWE-319)
2026-06-03 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 GHSA-mm6v-q8q9-pgcf
2.3
CVSS 4.0 · Vendor: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attain on-path network position
  2. Delivery
    Intercept SMTP STARTTLS negotiation
  3. Exploit
    Cause or observe TLS handshake failure
  4. Execution
    Django silently reuses cleartext connection (fail_silently=True)
  5. Impact
    Capture full email content in transit

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V12 - Secure Communication Transport encryption
Exploitation Conditions

Exploitation requires three concurrent conditions to be met simultaneously. First, the Django application must explicitly configure django.core.mail.backends.smtp.EmailBackend with fail_silently=True - this non-default parameter is the direct enabling condition, as it suppresses the exception that would otherwise abort the insecure connection. Second, the attacker must hold an on-path network position between the Django application server and its configured SMTP relay, as confirmed by the CVSS AT:P (attack requirements present) and AV:N signals; this requires active network-level access such as ARP spoofing, a compromised routing device, or ISP-level interception. Third, a legitimate email transmission must occur while the attacker is in position, as indicated by CVSS UI:P (passive user interaction required). Exploitation is bounded by: the high attack complexity (AC:H) making opportunistic mass attacks impractical, the mandatory on-path prerequisite ruling out remote unauthenticated exploitation against arbitrary targets, the low confidentiality impact limited to email content with no system compromise, and the requirement that fail_silently=True be explicitly set - deployments using fail_silently=False or relying on Django's default behavior are not affected.

Impact

The CVSS 4.0 score of 2.3 is internally consistent and appropriately low given the multi-factor prerequisites. Attack vector is network (AV:N), but attack complexity is high (AC:H) and attack requirements are present (AT:P), collectively confirming that exploitation is conditional on an adversary securing an on-path network position - a meaningful operational barrier. Passive user interaction (UI:P) is required because a legitimate process must trigger an email send during the attacker's active interception window. No privileges are required (PR:N), but that benefit is heavily offset by the other constraints. Confidentiality impact is low (VC:L), scoped to email message content; there is no integrity or availability impact. No EPSS score was available in the provided data, so exploitation probability cannot be quantified numerically. There is no CISA KEV listing and no public proof-of-concept code identified, making opportunistic mass exploitation unlikely. The realistic priority audience is organizations that send sensitive emails (credentials, PII, financial data) from Django applications over untrusted or shared network paths - cloud-to-cloud SMTP relay paths, multi-tenant environments, or deployments routing through third-party SMTP providers - and that have explicitly set fail_silently=True.

Exploit ScenarioDerived

An attacker with an on-path network position - achieved via ARP poisoning on a shared network, a compromised upstream router, or a BGP-level interception - causes the STARTTLS handshake between the Django application server and the SMTP relay to fail. Because fail_silently=True suppresses the resulting exception, Django's SMTP backend reuses the unencrypted connection and transmits the full email body and headers in cleartext, which the attacker captures passively. No public proof-of-concept exploit code has been identified at time of analysis, though STARTTLS downgrade techniques are well-documented in academic and security research literature.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 03, 2026

Django's SMTP email backend silently downgrades to cleartext transmission when a STARTTLS handshake fails under the fail_silently=True configuration, exposing email content to on-path network interception. Affected are Django 6.0.x before 6.0.6 and 5.2.x before 5.2.15; older unsupported series (5.0.x, 4.1.x, 3.2.x) were not evaluated but may also be vulnerable. No public exploit has been identified at time of analysis, and the CVSS 4.0 score of 2.3 reflects the high attack complexity and mandatory on-path network positioning required for exploitation.

RemediationAI

Upgrade to Django 6.0.6 or Django 5.2.15, the vendor-confirmed patched releases documented at https://www.djangoproject.com/weblog/2026/jun/03/security-releases/. If immediate upgrade is not possible, set fail_silently=False in all EmailBackend configurations so that a failed STARTTLS handshake raises an exception and aborts the connection rather than silently continuing over cleartext - note this trade-off means application code must handle smtplib.SMTPException or Django's socket.error to avoid unhandled errors breaking email-dependent workflows. A stronger architectural mitigation is to use an SMTPS (implicit TLS) connection on port 465 via Django's EMAIL_USE_SSL = True setting instead of STARTTLS on port 587, which eliminates the downgrade attack surface entirely by requiring TLS from the outset. Operators running unsupported Django series (5.0.x, 4.1.x, 3.2.x) should treat themselves as potentially exposed and prioritize upgrading to a supported series given those branches receive no security patches.

Affected VersionsENISA

Django 5.2 <5.2.15
Django 6.0 <6.0.6

Affected Packages

pypi django fix: 5.2.15, 6.0.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Django's django.core.mail.backends.smtp.EmailBackend handles outbound email delivery over SMTP. STARTTLS is a protocol upgrade command that promotes a plaintext SMTP session to TLS-encrypted transport; if the upgrade handshake fails, the connection must be terminated to prevent cleartext exposure. CWE-319 (Cleartext Transmission of Sensitive Information) identifies the root cause: when fail_silently=True is set, the backend suppresses the STARTTLS exception and continues using the partially-initialized, unencrypted connection for delivery. This is a variant of the well-understood STARTTLS downgrade attack class. An on-path adversary can interfere with or simply observe the failed negotiation and then passively read all subsequently transmitted email data on the plaintext channel. No CPE strings were provided in the referenced NVD entry; affected components are identified from the description as Django 5.2.x and 6.0.x specifically within the django.core.mail subsystem.

Know when Django gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (6a34fbeb-21d4-45e7-8e0a-62b95bc12c92) PRIMARY 2.3 LOW
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (6a34fbeb-21d4-45e7-8e0a-62b95bc12c92) · only source for this CVE.

CVSS VectorVendor: 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 03, 2026 - 16:01 EUVD

DescriptionCVE.org

An issue was discovered in Django 6.0 before 6.0.6 and 5.2 before 5.2.15. django.core.mail.backends.smtp.EmailBackend in Django fails to prevent reuse of a partially-initialized connection after a failed STARTTLS handshake when fail_silently=True, which allows on-path network attackers to read email content via cleartext interception. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Kasper Dupont for reporting this issue.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Django

View all
CVE-2021-23336 MEDIUM POC
5.9 Feb 15

The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before 3.8.8, from 3.9

CVE-2017-12794 MEDIUM POC
6.1 Sep 07

In Django 1.10.x before 1.10.8 and 1.11.x before 1.11.5, HTML autoescaping was disabled in a portion of the template for

CVE-2022-34265 CRITICAL POC
9.8 Jul 04

An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. Rated critical severity (CVSS 9.8), this vulne

CVE-2021-35042 CRITICAL POC
9.8 Jul 02

Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input

CVE-2019-19844 CRITICAL POC
9.8 Dec 18

Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. Rated critical severity (CVSS 9.8

CVE-2026-61594 CRITICAL POC
9.1 Sep 16

An authentication/authorization bypass in the djust Python live-view framework (versions prior to 1.0.7) lets unauthenti

CVE-2026-61599 HIGH POC
8.8 Sep 16

Unauthenticated arbitrary Python module import in djust before 1.0.7 lets any client that can reach the WebSocket or SSE

CVE-2020-9402 HIGH POC
8.8 Mar 05

Django 1.11 before 1.11.29, 2.2 before 2.2.11, and 3.0 before 3.0.4 allows SQL Injection if untrusted data is used as a

CVE-2016-6186 MEDIUM POC
6.1 Aug 05

Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/j

CVE-2026-93456 HIGH POC
8.4 Sep 18

Forged content modification in django-page-cms through 2.0.13 lets unauthenticated remote attackers exploit five CSRF-ex

CVE-2026-61593 HIGH POC
8.1 Sep 16

Cross-site request forgery in djust's Server-Sent-Events transport affects all versions prior to 1.0.7 and allows a cros

CVE-2026-61590 HIGH POC
7.4 Sep 16

Unauthenticated remote attackers can read live Django view and session state and invoke server-side handlers through dju

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy