What is CVE-2026-125673?
CVE-2026-125673 is a medium-severity other vulnerability in djangoproject Django, published on 2 Dec 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-41
How severe is CVE-2026-125673?
CVE-2026-125673 scores 6.3 out of 10 under CVSS 4.0, which is medium severity. It was scored by DSF.
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- None
- User interaction
- None
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
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
Which versions are affected by CVE-2026-125673?
An affected version is only exploitable if your software calls django.middleware.cache.UpdateCacheMiddleware, django.views.decorators.cache.cache_page() or django.http.HttpRequest.build_absolute_uri(). Many projects that include it are not exposed.
How do I fix CVE-2026-125673?
Upgrade djangoproject Django to the fixed version for your release line. The advisory names 6.1.4, 6.0, 6.0.11 and 5.2.
Upgrade to the fixed version. More about Other.
Is CVE-2026-125673 being exploited?
There is no known exploitation of CVE-2026-125673 in the wild and no public exploit code.
Sources
Also known as ALPINE-CVE-2026-125673, DEBIAN-CVE-2026-125673, GHSA-6v66-qxmf-99r3, UBUNTU-CVE-2026-125673.