... the Django security policy . CVE-2026-8404: Potential exposure of private data via case-sensitive Cache-Control directives UpdateCacheMiddleware and cache_page() incorrectly cached responses marked with private Cache-Control directives when using mixed or uppercase v ... cording to the Django security policy . CVE-2026-35193: Potential exposure of private data via missing Vary: Authorization UpdateCacheMiddleware and cache_page() decorator allowed responses to requests bearing an Authorization header (and without Cache-Control: publi ... g to the Django security policy . CVE-2026-48587: Potential exposure of private data via whitespace padding in Vary header UpdateCacheMiddleware incorrectly cached responses whose Vary header values contained leading or trailing whitespace. Because has_vary_header() ... ... the Django security policy . CVE-2026-8404: Potential exposure of private data via case-sensitive Cache-Control directives UpdateCacheMiddleware and cache_page() incorrectly cached responses marked with private Cache-Control directives when using mixed or uppercase v ... cording to the Django security policy . CVE-2026-35193: Potential exposure of private data via missing Vary: Authorization UpdateCacheMiddleware and cache_page() decorator allowed responses to requests bearing an Authorization header (and without Cache-Control: publi ... g to the Django security policy . CVE-2026-48587: Potential exposure of private data via whitespace padding in Vary header UpdateCacheMiddleware incorrectly cached responses whose Vary header values contained leading or trailing whitespace. Because has_vary_header() ... ... to the Django security policy . CVE-2026-6907: Potential exposure of private data due to incorrect handling of Vary: * in UpdateCacheMiddleware Previously, UpdateCacheMiddleware would erroneously cache requests where the Vary header contained an asterisk ( '*' ). Th ... ... to the Django security policy . CVE-2026-6907: Potential exposure of private data due to incorrect handling of Vary: * in UpdateCacheMiddleware Previously, UpdateCacheMiddleware would erroneously cache requests where the Vary header contained an asterisk ( '*' ). Th ... ... e middleware class UpdateCacheMiddleware [ソース] class FetchFromCacheMiddleware [ソース] サイト全体でキャッシュを有効にします。有効にすると、Django を利用している ... リダイレクトを有効にしているなら、他のたくさんの必要のないミドルウェアが実行されないように、リストの先頭付近に置くべきです。 UpdateCacheMiddleware Vary ヘッダに変更を加えるミドルウェア ( SessionMiddleware , GZipMiddleware , LocaleMiddleware ) の前に置きます。 GZipMiddl ... eware response body を変更・使用する可能性のあるミドルウェアの前に置きます。 Vary ヘッダを修正するため、 UpdateCacheMiddleware の後に置きます。 SessionMiddleware CSRF_USE_SESSIONS を使用している場合、例えば PermissionDenied のようなエラービューをトリ ... ... ... ... を設定したら、キャッシュを使う最も簡単な方法はサイト全体をキャッシュすることです。この例のように、 'django.middleware.cache.UpdateCacheMiddleware' と 'django.middleware.cache.FetchFromCacheMiddleware' を MIDDLEWARE 設定に追加する必要があります: MIDDLEWARE = [ "django. ... middleware.cache.UpdateCacheMiddleware" , "django.middleware.common.CommonMiddleware" , "django.middleware.cache.FetchFromCacheMiddleware" , ] 注釈 いいえ、これは ... ーで応答されることを期待します。その場合、HEADリクエストに対してキャッシュされたGETレスポンスを返すことができます。 さらに、 UpdateCacheMiddleware は ダウンストリームキャッシュ に影響を与えるいくつかのヘッダを HttpResponse に自動的に設定します: Expires ヘッダーに現在の ... ... で呼び出されている場合)、 CsrfViewMiddleware はレスポンスにクッキーと Vary: Cookie ヘッダをレスポンスに追加します。これは、 UpdateCacheMiddleware が指示通りに使用された場合、このミドルウェアがキャッシュミドルウェアと協調的に動作することを意味します( UpdateCacheMiddle ... ... ing to the Django security policy . CVE-2026-113593: Potential exposure of private data via empty and missing Vary headers UpdateCacheMiddleware and cache_page() generated the same cache key for a request that omitted a header listed in the response's Vary header and ... 2026年10月08日