CVE-2026-125673: Potential cache poisoning via dot segments in request paths

Published Dec 2, 2026
·
Updated

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.cachepage() are affected by a bug in django.http.HttpRequest.buildabsoluteuri(), 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.

Affected Software

1 affected component
pypi/django>=6.1.0<6.1.4, >=6.0.0<6.0.11, >=5.2.0<5.2.20

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.1.4
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.0.11
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.2.20

Event History

Dec 2, 2026
CVE Published
via MITRE·01:20 PM
Data Sourced
via MITRE·01:20 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which Django deployments are affected?

The issue affects Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20 when they use UpdateCacheMiddleware or the cache_page() decorator. Unsupported series including 5.1.x, 5.0.x, and 4.2.x were not evaluated and may also be affected.

2

What must an attacker be able to do to exploit this?

An unauthenticated attacker must be able to send requests containing . or .. path segments. Exploitation additionally depends on the deployment and URL configuration, and has high attack complexity.

3

What is the practical impact of successful exploitation?

An attacker can poison cached content so that cached responses are served for unintended URLs. The stated impact is integrity-only; no confidentiality or availability impact is identified.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203