Description
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.
CVSS scores
| Version | Scored by | Score | Vector |
|---|---|---|---|
| CVSS 3.1 | DSF (CNA) | 3.7 Low | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| CVSS 4.0 | DSF (CNA) | 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 |
| CVSS 4.0 | CNA | 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 |
Timeline
- CVE published
- Last updated by the CVE authority
- First tracked by SecureCyberVM
Am I affected?
- Do you run djangoproject Django? Check the exact versions in the affected products list.
- Is the affected service reachable from the internet or by untrusted users? Exposed systems come first.
- Watch this page: if exploitation is reported it moves to the top of your list.
- Apply the vendor's update as soon as it is available; restrict access to the service until then.
Affected products
- djangoproject Django: from 6.1 before 6.1.4; from 6.0 before 6.0.11; from 5.2 before 5.2.20
Fix
- Django security archive (vendor-advisory)
- github.com (patch)
- github.com (patch)
- github.com (patch)
- github.com (patch)
- Django security releases issued: 6.1.4, 6.0.11, and 5.2.20 (vendor-advisory)
Weakness
CWE-41: Improper Resolution of Path Equivalence
Coverage of CVE-2026-125673
Frequently asked questions
Is CVE-2026-125673 being actively exploited?
There are no confirmed reports of exploitation in the wild: CVE-2026-125673 is not in CISA's Known Exploited Vulnerabilities catalog. This page is re-checked daily.
How severe is CVE-2026-125673?
CVE-2026-125673 has a highest CVSS score of 6.3 (Medium) under CVSS 4.0. Severity alone is not priority: check exploitation status and whether you run an affected version.
How do I fix CVE-2026-125673?
Apply the vendor's security update as soon as it is available and follow the official advisory linked in the references on this page. Restrict exposure of the affected service until it is patched.
Which products are affected by CVE-2026-125673?
djangoproject Django. See the affected products list on this page for exact versions.
References
- Django security archive
- Django releases announcements
- https://github.com/django/django/commit/bc2ceaddafbedbb047c860805e63d855dc855051
- https://github.com/django/django/commit/2fa6e4160c69bd71d14a1dc31a706f2c918be7fa
- https://github.com/django/django/commit/9ad3bcba17cec28c021dd589368bed48a1263df6
- https://github.com/django/django/commit/7e797bf00d147b152859be0ca778e984728ab3b8
- Django security releases issued: 6.1.4, 6.0.11, and 5.2.20
Change log
- First recorded on SecureCyberVM from CVE.org, NVD, CISA KEV and FIRST EPSS.
Sources: CVE.org, NIST NVD, CISA KEV and ADP, FIRST EPSS. This record is refreshed automatically every day; changes are listed in the change log above.
