PT-2026-21353 · Flask+2 · Flask+2

Shouryaj98

·

Published

2026-02-19

·

Updated

2026-05-19

·

CVE-2026-27205

CVSS v3.1

4.3

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions Flask versions 3.1.2 and below
Description Flask, a web server gateway interface (WSGI) web application framework, may improperly handle caching when accessing the session object. Specifically, it may fail to set the 'Vary: Cookie' header, potentially leading to a Use of Cache Containing Sensitive Information issue. This occurs when the application is hosted behind a caching proxy that doesn't ignore responses with cookies, lacks a 'Cache-Control' header to mark pages as private or non-cacheable, and accesses the session in a way that only touches keys without reading values or mutating the session. The issue stems from overlooking certain forms of access, such as the Python 'in' operator.
Recommendations Update to Flask version 3.1.3 or later.

Exploit

Fix

Weakness Enumeration

Related Identifiers

CVE-2026-27205
ECHO-32C7-8A8F-5DF3
GHSA-68RP-WP8R-4726
OESA-2026-2135
OESA-2026-2136
OESA-2026-2137
OPENSUSE-SU-2026:10264-1
SUSE-SU-2026:0849-1
USN-8104-1

Affected Products

Flask
Linuxmint
Ubuntu