#VU124872 Use of cache containing sensitive information in Flask - CVE-2026-27205

 

#VU124872 Use of cache containing sensitive information in Flask - CVE-2026-27205

Published: April 6, 2026


Vulnerability identifier: #VU124872
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-27205
CWE-ID: CWE-524
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Flask
Software vendor:
The Pallets Projects

Description

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to when the session object is accessed, Flask should set the Vary: Cookie header. The logic instructs caches not to cache the response, as it may contain information specific to a logged in user. This is handled in most cases, but some forms of access such as the Python in operator were overlooked. The severity and risk depend on the application being hosted behind a caching proxy that doesn't ignore responses with cookies, not setting a Cache-Control header to mark pages as private or non-cacheable, and accessing the session in a way that only touches keys without reading values or mutating the session. A remote attacker can gain unauthorized access to sensitive information on the system.


Remediation

Install updates from vendor's website.

External links