CVE-2026-35192
Description
A flaw was found in Django. When the SESSION_SAVE_EVERY_REQUEST setting is enabled, response headers do not properly vary on cookies for unmodified sessions. This vulnerability allows a remote attacker to steal a user's session after the user visits a cached public page, leading to unauthorized access to their account.
Statement
Moderate: A flaw in Django applications, when configured with SESSION_SAVE_EVERY_REQUEST enabled, allows for session theft. This occurs because response headers do not properly vary on cookies for unmodified sessions, enabling a remote attacker to steal a user's session after they visit a cached public page. This vulnerability requires a specific configuration and user interaction to be exploited.
Mitigation
To mitigate this issue, ensure that the `SESSION_SAVE_EVERY_REQUEST` setting in Django applications is set to `False` unless explicitly required for application functionality. Disabling this setting prevents the vulnerable condition where response headers do not properly vary on cookies for unmodified sessions on cached public pages. Consult your Django application's configuration for specific instructions on modifying this setting. A restart of the Django application or web server may be required for the change to take effect.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 6.5 | 6.5 | N/A |
| Attack Vector | Network | Network | N/A |
| Attack Complexity | Low | Low | N/A |
| Privileges Required | None | None | N/A |
| User Interaction | Required | Required | N/A |
| Scope | Unchanged | Unchanged | N/A |
| Confidentiality | High | High | N/A |
| Integrity Impact | None | None | N/A |
| Availability Impact | None | None | N/A |
Vector
Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Application Data
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.