CVE-2026-27205: Cross-user cache information disclosure in Flask session handling
- Vendor
- Palletsprojects
Flask versions 3.1.2 and earlier may omit the Vary: Cookie response header when application code accesses session keys through overlooked operations, such as Python's in operator, without reading values or modifying the session. This omission can cause a shared caching proxy to reuse a session-dependent response across requests with different cookies, exposing one user's information to another. Exploitation depends on proxy caching behavior and the absence of other cache restrictions. Flask 3.1.3 fixes the affected session-access handling.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Session-dependent responses may be cached and served to other users, disclosing user-specific or sensitive information. The extent of disclosure depends on the application's response content and caching configuration. No direct integrity or availability impact is established.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, set Cache-Control: private, no-store on session-dependent responses, or configure the reverse proxy or CDN to bypass shared caching for cookie-bearing requests and user-specific responses. Avoid relying solely on session key-membership checks that do not mark the session as accessed in affected versions. Vary: Cookie separates cached responses by cookie value; it does not itself prohibit caching.
Remediation
Patch, then assume compromise.
Upgrade Flask to version 3.1.3 or later, which correctly sets Vary: Cookie for the affected session-access patterns.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-27205 exploited in the wild?
- As of Nov 9, 2026, Mallory has no reports of CVE-2026-27205 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-27205?
- As of Nov 9, 2026, Mallory has found no public exploit for CVE-2026-27205.
- Is there a patch for CVE-2026-27205?
- Upgrade Flask to version 3.1.3 or later, which correctly sets Vary: Cookie for the affected session-access patterns.
- What products are affected by CVE-2026-27205?
- Palletsprojects Flask.
- How severe is CVE-2026-27205?
- CVE-2026-27205 has a CVSS v4 score of 2.3 (Low) and an EPSS score of 0.39% (34th percentile) as of Nov 9, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.