CVE-2026-25674: Django Django Has A Race Condition Vulnerability
LOWCVE-2026-25674 is a LOW (CVSS 3.7) django has a race condition vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Django libraries in the PyPI ecosystem. The issue involves django has a race condition vulnerability. Remediation is available by upgrading affected packages to version 6.0.3, 5.2.12, 4.2.29.
CVE-2026-25674 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-25674
To remediate this vulnerability, upgrade all affected Django dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install Django>=6.0.3
pip install Django>=5.2.12
pip install Django>=4.2.29
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Django
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-25674, inspect your installed packages using pip:
pip show Django
Analyze the terminal output to locate any version of Django in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.3), your application is affected.
Note: The pip show Django command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Django, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-25674 Affected Django Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Django
|
PyPI |
≥ 6.0
< 6.0.3
|
6.0.3
|
|
Django
|
PyPI |
≥ 5.2
< 5.2.12
|
5.2.12
|
|
Django
|
PyPI |
≥ 4.2
< 4.2.29
|
4.2.29
|
References
Frequently Asked Questions
What is CVE-2026-25674?
Which Django versions are affected?
What version fixes CVE-2026-25674?
Is Django affected?
What is the CVSS score of CVE-2026-25674?
What CWE is associated with CVE-2026-25674?
How can I check PyPI dependencies for CVE-2026-25674?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mjgh-79qc-68w3",
"modified" : "2026-03-04T20:24:29Z",
"published" : "2026-03-03T15:31:41Z",
"aliases" : [ "CVE-2026-25674" ],
"summary" : "Django has a Race Condition vulnerability",
"details" : "An issue was discovered in 6.0 before 6.0.3, 5.2 before 5.2.12, and 4.2 before 4.2.29.\n\nRace condition in file-system storage and file-based cache backends in Django allows an attacker to cause file system objects to be created with incorrect permissions via concurrent requests, where one thread's temporary `umask` change affects other threads in multi-threaded environments.\n\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank Tarek Nakkouch for reporting this issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0"
}, {
"fixed" : "6.0.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.2"
}, {
"fixed" : "5.2.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "Django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2"
}, {
"fixed" : "4.2.29"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25674"
}, {
"type" : "WEB",
"url" : "https://docs.djangoproject.com/en/dev/releases/security"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/django/django"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/django-announce"
}, {
"type" : "WEB",
"url" : "https://www.djangoproject.com/weblog/2026/mar/03/security-releases"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-362" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-04T20:24:29Z",
"nvd_published_at" : "2026-03-03T15:16:19Z"
}
}