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

·

CVE-2026-27205

·

Published

2026-02-19

·

Updated

2026-07-09

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CLEANSTART-2026-AZ09261
CLEANSTART-2026-CQ05396
CLEANSTART-2026-FT24360
CLEANSTART-2026-FU07345
CLEANSTART-2026-KE11953
CLEANSTART-2026-MR94452
CLEANSTART-2026-NM83456
CLEANSTART-2026-QE89118
CLEANSTART-2026-SO50412
CLEANSTART-2026-UO85049
CLEANSTART-2026-WQ85001
CLEANSTART-2026-WU03167
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
OPENSUSE-SU-2026:20885-1
PYSEC-2026-2151
SUSE-SU-2026:0849-1
SUSE-SU-2026:22023-1
USN-8104-1

Affected Products

Flask
Linuxmint
Ubuntu