Use of Cache Containing Sensitive Information in Flask by Pallets
CVE-2026-27205
2.3LOW
What is CVE-2026-27205?
Flask, a popular web server gateway interface (WSGI) framework, has a vulnerability that arises when session objects are accessed. In versions 3.1.2 and below, the framework fails to consistently apply the Vary: Cookie header, which can lead to sensitive information being cached improperly. This flaw may permit caching proxies to store responses that contain user-specific information, especially if the Cache-Control header is not accurately configured to ensure pages are treated as private or non-cacheable. The oversight primarily affects scenarios where access to session data only involves non-mutating operations. Users are advised to upgrade to Flask version 3.1.3, where this vulnerability is mitigated.
Affected Version(s)
flask < 3.1.3
