Potential cache poisoning via dot segments in request paths
- Exploited
- No known exploitation
- Fix
- Fixed in 6.1.4, 6.0.11, 5.2.20
- Who is exposed
- Not reported
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.
What to do
Upgrade to a fixed version: 6.1.4, 6.0.11, 5.2.20.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-125673 (Potential cache poisoning via dot segments in request paths), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-125673 (entry last updated 2026-12-02):
Affected:
- PyPI package django: from 6.1, fixed in 6.1.4; from 6.0, fixed in 6.0.11; from 5.2, fixed in 5.2.20
Fixed versions: 6.1.4, 6.0.11, 5.2.20.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-125673 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-125673 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (PyPI): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://docs.djangoproject.com/en/dev/releases/security/
- https://www.djangoproject.com/weblog/2026/dec/02/security-releases/
- 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
- https://groups.google.com/g/django-announce
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-125673
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-125673"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed per the CVSS vector, reachable over the network without a login · Unknown: No advisory context yet
- Reach20/20django: 12M downloads a week
- Severity3.7/10CVSS 3.7
- No patch0/5No signal
What would change the score
- Would score about 86 if added to CISA KEV
- Would score about 81 if CISA's SSVC rates exploitation active
- Would score about 46 if advisories confirm default setups are exposed
Impact
- Widely useddjango has 12m weekly downloads. pypistats.org12.2k packages depend on django. deps.dev
Timeline
- CVE published
- First seen by cve.now
Evidence 9
| Kind | Source |
|---|---|
| Vendor advisory 2Establishes: Affected and fixed versions. | |
| Advisory | docs.djangoproject.com · en/dev/releases/security |
| Advisory | djangoproject.com · weblog/2026/dec/02/security-releases |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-125673 |
| Record | NVD · CVE-2026-125673 |
| Other links 5 | |
| Patch | GitHub · django/django · Commit bc2ceadd |
| Patch | GitHub · django/django · Commit 2fa6e416 |
| Patch | GitHub · django/django · Commit 9ad3bcba |
| Patch | GitHub · django/django · Commit 7e797bf0 |
| Link | groups.google.com · g/django-announce |
Questions about CVE-2026-125673
Is CVE-2026-125673 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-125673?
django (PyPI): from 6.1 before 6.1.4; from 6.0 before 6.0.11; from 5.2 before 5.2.20.
Source: cve.now feed data
How do I fix CVE-2026-125673?
Upgrade to a fixed version: 6.1.4, 6.0.11, 5.2.20.
Source: cve.now feed data
Related
- CVE-2026-132092Potential SQL injection in range and in lookups
- CVE-2026-124827Server-side file-write via RasterField assignment
- CVE-2026-15307Server-side file-write and request forgery via spatial lookups
- CVE-2026-115868Potential cross-site scripting vulnerability in truncatechars_html
- CVE-2026-53878Header injection possibility since DomainNameValidator accepted newlines in input
- CVE-2026-132809Heap buffer overflow in OGRGeometry.wkb
No corrections so far. Something wrong on this page? Report an error.