CVE-2026-125673 — djangoproject Django
One of 7 djangoproject Django vulnerabilities published together by NVD: our article covers all of them.
PythonWebVulnerabilitiesResearch article
Django cache poisoning via dot-segment mishandling in build_absolute_uri (CVE-2026-125673)
| CVE | CVE-2026-125673 |
|---|---|
| Vendor and product | djangoproject Django |
| Published | December 02, 2026 16:21 UTC |
| Research cut-off | December 02, 2026 16:16 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-12-02); CISA KEV catalog; vendor advisory page (seclists.org) |
Executive summary
CVE-2026-125673 is a Django flaw in which build_absolute_uri() normalizes request paths containing dot segments incorrectly, so cache middleware and cache_page() can store and serve responses for unintended URLs [1, 3]. NVD lists CVSS 4.0 6.3 Medium (CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X) and CVSS 3.1 3.7 Low (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N), both from a secondary scorer, while the vendor rates it low [1, 3]. The CVE record names Django 6.1 before 6.1.4, 6.0 before 6.0.11 and 5.2 before 5.2.20 as affected, and the vendor page also lists the main branch [1, 3]. Exploitation requires specific deployment and URL configurations, and the sources state that no authentication or user interaction is needed [1, 3]. The consequence is an unauthenticated attacker causing wrong cached content to be served, with integrity impact as scored [1, 3]. The CVE was not listed in CISA KEV as of 2026-12-02, and the reviewed sources report no exploitation or public proof of concept, which does not prove that exploitation has not occurred [2, 3]. The most important immediate action is to upgrade to the fixed release for your series and then clear existing caches, because the vendor says cached responses are not invalidated automatically [1, 3].
Key points
- CVE-2026-125673 involves build_absolute_uri() mishandling dot segments, letting cache middleware and cache_page() serve responses for unintended URLs [1, 3].
- NVD scores: CVSS 4.0 6.3 Medium and CVSS 3.1 3.7 Low, both from a secondary scorer; the vendor rates it low [1, 3].
- Affected per the CVE record: Django 6.1 before 6.1.4, 6.0 before 6.0.11, 5.2 before 5.2.20; the vendor page also names the main branch [1, 3].
- Exploitation needs specific deployment and URL configurations; no authentication or user interaction is required [1, 3].
- Not in CISA KEV as of 2026-12-02; no exploitation or public proof of concept is reported in the reviewed sources [2, 3].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-125673 [1] |
| Vendor and product | djangoproject Django [1] |
| Component | django.middleware.cache.UpdateCacheMiddleware and the cache_page() view decorator, both relying on build_absolute_uri() [1, 3] |
| Published and last modified | 2026-12-02T14:17:11 for both dates [1] |
| Record status | Deferred [1] |
| CWE | CWE-41, Improper Resolution of Path Equivalence [1] |
| CVSS 4.0 | 6.3 Medium; CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; scored by 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) [1] |
| CVSS 3.1 | 3.7 Low; CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N; scored by 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) [1] |
| Vendor severity | Rated low under the Django security policy [3] |
| Fix commits | bc2ceaddafbedbb047c860805e63d855dc855051 (main), 2fa6e4160c69bd71d14a1dc31a706f2c918be7fa (6.1), 9ad3bcba17cec28c021dd589368bed48a1263df6 (6.0), 7e797bf00d147b152859be0ca778e984728ab3b8 (5.2) [1, 3] |
| CISA KEV | Not listed as of 2026-12-02 [2] |
The two CVSS versions fall into different severity bands (Medium under 4.0, Low under 3.1), and the vendor's Low rating matches the 3.1 score. No source explains the difference. The record spells the method without underscores, while the vendor page uses build_absolute_uri(); the context indicates they are the same method [1, 3] (Analyst assessment).
Vulnerability description
The flaw breaks the integrity of cached responses. Django's build_absolute_uri() method builds a full URL from a request, and it normalizes path segments that are single or double dots incorrectly [1, 3]. The cache middleware and the cache_page() decorator use the affected handling, so a response generated for one URL can be stored and later returned for a different URL [1, 3].
The flaw matters only under specific deployment and URL configurations, and the sources do not list those configurations [1, 3]. An attacker needs no authentication and no user interaction, according to both the vector and the vendor page [1, 3]. The reviewed sources describe only this cache-content effect. They describe no code execution, no direct disclosure of data, and no availability impact; the scores agree with this by setting confidentiality and availability impact to none [1].
Root cause analysis
The vendor attributes the issue to incorrect normalization of request paths containing dot segments by build_absolute_uri() [3] (Confirmed by vendor advisory). Analyst assessment: because cache keys are derived from the URL the framework computes, a normalization error can make two different request targets resolve to the same cache entry. The sources do not show the code change, so the exact defect is unknown [3].
Attack surface and exploitation prerequisites
| Factor | Status | Source |
|---|---|---|
| Network access | Network-reachable (AV:N) | [1] |
| Adjacent, local or physical access | Not required per the vector | [1] |
| Authentication | None required (PR:N) | [1, 3] |
| User interaction | None required (UI:N) | [1, 3] |
| Required configuration | Specific deployment and URL configurations; not enumerated | [1, 3] |
| Attack complexity | High in CVSS 3.1 (AC:H); low in CVSS 4.0 (AC:L), with attack requirements present (AT:P) | [1] |
The network, authentication and interaction factors come from the vectors, and the configuration requirement comes from the vendor text [1, 3]. The vectors do not show whether a given site meets the configuration conditions, so exploitability of any particular deployment is unknown.
Impact analysis
| Area | Technically stated impact | Plausible downstream consequence (Analyst assessment) |
|---|---|---|
| Confidentiality | None in both vectors [1] | Cached pages from one URL could be shown under another URL, which could reveal page content if a sensitive page is cached under a different address |
| Integrity | Low in both vectors (I:L, VI:L); cached responses served for unintended URLs [1, 3] | Users may receive content intended for other pages, which affects the trustworthiness of what the site serves |
| Availability | None in both vectors [1] | Not established by the reviewed sources |
| Authentication and authorization | No authentication required for the attacker [1, 3] | Any authorization decision made in cached content could be affected, but the sources do not discuss this |
| Data and privacy, regulatory duties | Not discussed in the sources [1, 3] | Depends on what is cached and how the application is deployed |
The vendor notes that the issue does not affect geometry fields [3].
Affected products and versions
| Product | Affected range (CVE record) | Fixed version | Source and qualification |
|---|---|---|---|
| Django 6.1 | 6.1 before 6.1.4 | 6.1.4 | Vendor-published in the CVE record [1] |
| Django 6.0 | 6.0 before 6.0.11 | 6.0.11 | Vendor-published in the CVE record [1] |
| Django 5.2 | 5.2 before 5.2.20 | 5.2.20 | Vendor-published in the CVE record [1] |
| Django main branch | Listed as affected on the vendor page [3] | Fix commit bc2ceaddafbedbb047c860805e63d855dc855051; no fixed release number given [3] | Not in the CVE record's ranges [1] |
| Django 5.1.x, 5.0.x, 4.2.x | The record says these earlier unsupported series were outside the evaluation and could also be affected [1] | None published in the sources | Unknown |
The record ranges and the vendor page disagree on whether the main branch is affected, so the record's ranges should be treated as incomplete for development builds [1, 3]. Deployment type is any Django application that uses the affected cache middleware or decorator [1, 3].
Exploitation and threat intelligence status
No source reports confirmed exploitation in the wild. The CISA KEV catalog did not list the CVE as of 2026-12-02, and the catalog's absence does not show that it was not exploited [2]. The vendor page states that it does not discuss exploitation status or proof of concept [3]. The reporter is credited as 4drez [1, 3]. No threat actor, campaign or sector is attributed in the sources.
The CVSS vectors and the vendor's description support theoretical exploitability under the stated configurations [1, 3]. The reviewed sources do not establish a public proof of concept or any observed attacks.
Detection and exposure assessment
The vendor page gives no detection guidance and no indicators of compromise [3], so detection relies on inventory and configuration review.
- Confirm the installed Django version on each application host, using the read-only command python -m django --version in the application's Python environment. The output is the installed version string. A version match against the affected ranges in the table above shows exposure to the flaw, not exploitability [1].
- Search application code for uses of the affected components, using the read-only command grep -rn 'cache_page\|UpdateCacheMiddleware' followed by the project path. The output lists file and line references. This does not show whether the URL configuration meets the trigger conditions, which the sources do not enumerate [1, 3].
- For deployments that use these components, review the URL configuration for paths that may include dot segments. The sources do not specify which configuration produces the issue, so this review is a manual check (Analyst assessment).
Remediation
Immediate mitigation: the vendor page states that it lists no workarounds [3]. One measure follows from the component's documented behaviour (Analyst assessment): temporarily removing UpdateCacheMiddleware or cache_page() from views that do not need caching reduces the number of cached responses an attacker could poison. The trade-off is higher backend load. Verify the change by confirming the decorator and middleware no longer appear in the code search above and that the application still serves pages correctly.
Permanent fix: upgrade to Django 6.1.4, 6.0.11 or 5.2.20 according to the series in use [1]. The vendor says the fixes are in the matching branch commits listed in the identification table [3]. After upgrading, manually clear any cache that may hold responses produced before the fix, because existing cached responses are not invalidated automatically [3]. The sources do not specify a restart requirement, cache backend procedure or rollback steps.
Series outside the listed branches have no published fixed version in the sources. Move those deployments to a supported series that carries the fix [1] (Analyst assessment).
Remediation checklist
- Inventory every Django application and record the installed version of each, using python -m django --version in its environment [1].
- Upgrade applications on the 6.1 series to 6.1.4, on 6.0 to 6.0.11 and on 5.2 to 5.2.20, using the fix commits listed by the vendor for each branch [1, 3].
- Move any deployment on the unsupported 5.1.x, 5.0.x or 4.2.x series to a supported series, because the record says these were not evaluated and no fixed version is published for them [1].
- After each upgrade, clear all caches that may hold responses generated before the fix, since cached responses are not invalidated automatically [3].
- Search code for cache_page and UpdateCacheMiddleware to identify where the affected components are used, and list the URL patterns that serve cached views [1, 3].
- Where caching is not needed, temporarily remove the affected middleware or decorator from those views until the upgrade is verified; expect higher backend load [1, 3] (Analyst assessment).
- After upgrading, re-run python -m django --version on each host to confirm the fixed version is installed; a version match alone does not prove the configuration is safe [1].
- Ask the vendor or the security advisory owners for the exact trigger configuration and any detection indicators, which the reviewed sources do not provide [3].
Evidence gaps
- Not established by the reviewed sources: the specific deployment and URL configurations that trigger the flaw; settle this by reading the vendor advisory text on the linked security release page.
- Not established by the reviewed sources: any confirmed exploitation in the wild or public proof of concept; settle this by checking vendor and threat intelligence reporting after the cut-off date.
- Not established by the reviewed sources: a fixed release number for the main branch, and any fixed version for the unsupported 5.1.x, 5.0.x and 4.2.x series; settle this with the vendor's release notes.
- Not established by the reviewed sources: the code change in the fix commits, so the root cause is an inference from the vendor summary; settle this by reviewing the commit diffs.
- Not established by the reviewed sources: indicators of compromise and detection guidance; the vendor page states neither exists, so settle this with the vendor.
- Not established by the reviewed sources: whether the main branch is affected, because the CVE record ranges omit it while the vendor page lists it; settle this with the vendor's advisory.
- Not established by the reviewed sources: the restart requirement, cache backend procedure and rollback steps after upgrading.
- The record status is Deferred and the CVSS scores come from a secondary scorer; the severity bands differ (Medium under 4.0, Low under 3.1), and no source reconciles them; settle this when NVD completes its analysis.
- The vendor advisory in the pack is hosted on a mailing-list archive with no stated date; the official vendor release page is cited in the record but its content is not in the pack; settle this by reviewing that page.
References
- CVE-2026-125673 record. NIST National Vulnerability Database (NVD), 2026-12-02. https://nvd.nist.gov/vuln/detail/CVE-2026-125673. Accessed 2026-12-02.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-02. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-02.
- Vendor bulletin page (seclists.org). seclists.org. https://seclists.org/oss-sec/2026/q4/974. Accessed 2026-12-02.
Summary
An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. `django.middleware.cache.UpdateCacheMiddleware` and `django.views.decorators.cache.cache_page()` are affected by a bug in `django.http.HttpRequest.build_absolute_uri()`, which incorrectly normalizes request paths containing `.` or `..` segments. Under certain deployment and URL configurations, this allows an unauthenticated attacker to poison the cache, causing cached responses to be served for unintended URLs. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank 4drez for reporting this issue.
Severity breakdown
Medium · 6.3
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- no
- Impact
- low on integrity, none on confidentiality and availability
- Impact on other systems
- none
Weakness
- CWE-41: Improper Resolution of Path Equivalence
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| djangoproject Django | ≥ 6.1, < 6.1.4 | 6.1.4 |
| ≥ 6.0, < 6.0.11 | 6.0.11 | |
| ≥ 5.2, < 5.2.20 | 5.2.20 |
References by type
Patches and fixed releases
- github.com/django/django/commit/2fa6e4160c69bd71d14a1dc31a706f2c918be7fa
- github.com/django/django/commit/7e797bf00d147b152859be0ca778e984728ab3b8
- github.com/django/django/commit/9ad3bcba17cec28c021dd589368bed48a1263df6
- github.com/django/django/commit/bc2ceaddafbedbb047c860805e63d855dc855051
Other references
Affected
- djangoproject Django
Frequently asked questions
What is CVE-2026-125673?
CVE-2026-125673 is a Django flaw in which buildabsoluteuri() normalizes request paths containing dot segments incorrectly, so cache middleware and cachepage() can store and serve responses for unintended URLs. Weakness type: Improper Resolution of Path Equivalence (CWE-41).
How severe is CVE-2026-125673?
CVE-2026-125673 has a CVSS 4.0 base score of 6.3 (medium), from the CNA. An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-125673 being exploited?
Not as far as is known: CVE-2026-125673 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.
Which versions are affected by CVE-2026-125673?
djangoproject Django ≥ 6.1, < 6.1.4 (fixed in 6.1.4); djangoproject Django ≥ 6.0, < 6.0.11 (fixed in 6.0.11); djangoproject Django ≥ 5.2, < 5.2.20 (fixed in 5.2.20).
How do I fix CVE-2026-125673?
Inventory every Django application and record the installed version of each, using python -m django --version in its environment. Upgrade applications on the 6.1 series to 6.1.4, on 6.0 to 6.0.11 and on 5.2 to 5.2.20, using the fix commits listed by the vendor for each branch. Move any deployment on the unsupported 5.1.x, 5.0.x or 4.2.x series to a supported series, because the record says these were not evaluated and no fixed version is published for them.
Timeline & sources
- oss-security: Django CVE-2026-115868, CVE-2026-119642, CVE-2026-124827, CVE-2026-125673, CVE-2026-127929,...
- NVD: CVE-2026-125673 — djangoproject Django
References
Related vulnerabilities & news
- CVE-2026-132092 — djangoproject Django
- Ubuntu Advisory USN-9335-1 Fixes Certificate Validation Flaw in python-scciclient
- PAGI-FastAPI for Perl Flaw Lets to_app Deployments Skip Auth and CSRF Middleware
- Pydantic Deep 0.2.18 Before 0.4.0 Missing Authentication in DeepResearch App
- Path Traversal Vulnerability in torchvision's extracttar() Function