Vulnerability
CVE-2026-27205
Flask is a web server gateway interface (WSGI) web application framework. In versions 3.1.2 and below, when the session object is accessed, Flask should set the Vary: Cookie header., resulting in a Use of Cache Containing Sensitive Information vulnerability. 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. The issue has been fixed in version 3.1.3.
47 advisories report this vulnerability, across 9 ecosystems.
Advisories
-
ALAS2023-2026-1476
Amazon Linux 2023 - ALAS2023-2026-1476: Medium priority package update for python-flask
- CGA-268m-55j4-vcxx
- CGA-2p97-2x63-mmjh
- CGA-3hvx-74gp-mp6f
- CGA-3p54-82cr-65m4
- CGA-42cq-63qh-49fq
- CGA-59g5-9g26-x4xv
- CGA-5cq5-pp9c-hgwq
- CGA-5h6x-pqgh-jvp5
- CGA-5xg4-h6c7-qm7f
- CGA-6256-2p2v-293v
- CGA-6h9j-x5w2-wqqq
- CGA-6hcv-5685-wxvj
- CGA-7xqg-5pqp-3c23
- CGA-8rw4-r67r-jw69
- CGA-94vj-3j3c-3q4j
- CGA-9rg2-rcx9-c553
- CGA-cvxv-r4p6-q4w6
- CGA-fm2j-xpfh-jjcf
- CGA-h9r4-8xr8-x4f3
- CGA-hf6p-2m3x-2xp7
- CGA-hr72-r6xx-q357
- CGA-jf8c-gxj4-vr99
- CGA-mpf5-4ccj-3r7x
- CGA-pj9w-ch5f-qfwp
- CGA-pv64-g974-x7w8
- CGA-qhwg-2525-3f5v
- CGA-r56f-jq9w-4q5j
- CGA-rf72-4cg4-8pj4
- CGA-rfc9-2r82-7q4w
- CGA-rm3c-rrjq-9q25
- CGA-rqxh-2vv2-p9cj
- CGA-rwqj-q34g-7x2g
- CGA-vjvv-qrpg-5pqx
- CGA-xqq2-3qm5-3cfh
-
DEBIAN-CVE-2026-27205
Flask is a web server gateway interface (WSGI) web application framework. In versions 3.1.2 and below, when the session object is accessed, Flask should set the Vary: Cookie header., resulting in a Use of Cache…
-
GHSA-68rp-wp8r-4726
Flask session does not add `Vary: Cookie` header when accessed in some ways
-
OESA-2026-2135
python-flask security update
-
OESA-2026-2136
python-flask security update
-
OESA-2026-2137
python-flask security update
-
PYSEC-2026-2151
Flask is a web server gateway interface (WSGI) web application framework. In versions 3.1.2 and below, when the session object is accessed, Flask should set the Vary: Cookie header., resulting in a Use of Cache…
-
SUSE-SU-2026:0849-1
Security update for python-Flask
-
SUSE-SU-2026:22023-1
Security update for python-Flask
-
SUSEVEX-CVE-2026-27205
Flask is a web server gateway interface (WSGI) web application framework. In versions 3.1.2 and below, when the session object is accessed, Flask should set the Vary: Cookie header., resulting in a Use of Cache…
-
UBUNTU-CVE-2026-27205
Flask is a web server gateway interface (WSGI) web application framework. In versions 3.1.2 and below, when the session object is accessed, Flask should set the Vary: Cookie header., resulting in a Use of Cache…
-
USN-8104-1
flask vulnerability
-
openSUSE-SU-2026:10264-1
python311-Flask-3.1.3-1.1 on GA media