SB2026040613 - Use of cache containing sensitive information in Flask



SB2026040613 - Use of cache containing sensitive information in Flask

Published: April 6, 2026

Security Bulletin ID SB2026040613
Severity
Medium
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Information disclosure

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 security vulnerability.


1) Use of cache containing sensitive information (CVE-ID: CVE-2026-27205)

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 update from vendor's website.