Every CVE Search/ Get API key

CVE-2026-27205

Flask session does not add `Vary: Cookie` header when accessed in some ways

2.3 LowFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Passive

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

0.40%Up 0.4 points since Feb 21, 2026
90%50%10%1%

What each source reports

CVE List Score used 2.3

Flask session does not add `Vary: Cookie` header when accessed in some ways

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.

Record
CVE-2026-27205
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-524
Updated
2026-11-02
EUVDEUVD-2026-7731 2.3

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.

Record
EUVD-2026-7731
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-68rp-wp8r-4726 2.3

Flask session does not add `Vary: Cookie` header when accessed in some ways

When the session object is accessed, Flask should set the Vary: Cookie header. This 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 depends on the application's use of the session, and the cache's behavior regarding cookies. The risk depends on all these conditions being met.

  1. The application must be hosted behind a caching proxy that does not ignore responses with cookies.
  2. The application does not set a Cache-Control header to indicate that a page is private or should not be cached.
  3. The application accesses the session in a way that does not access the values, only the keys, and does not mutate the session.
Record
GHSA-68rp-wp8r-4726
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-524
Updated
2026-11-02
NVD 2.3

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.

Record
CVE-2026-27205
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Weakness
CWE-524
Updated
2026-11-02
OSV 2.3

Flask session does not add `Vary: Cookie` header when accessed in some ways

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.

Record
CVE-2026-27205
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-524
Updated
2026-11-02
OSVDEBIAN-CVE-2026-27205 4.3

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.

Record
DEBIAN-CVE-2026-27205
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Updated
2026-11-02
Show 17 moreShow less
OSVGHSA-68rp-wp8r-4726 2.3

Flask session does not add `Vary: Cookie` header when accessed in some ways

When the session object is accessed, Flask should set the Vary: Cookie header. This 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 depends on the application's use of the session, and the cache's behavior regarding cookies. The risk depends on all these conditions being met.

  1. The application must be hosted behind a caching proxy that does not ignore responses with cookies.
  2. The application does not set a Cache-Control header to indicate that a page is private or should not be cached.
  3. The application accesses the session in a way that does not access the values, only the keys, and does not mutate the session.
Record
GHSA-68rp-wp8r-4726
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-524
Updated
2026-11-02
OSVOESA-2026-2135 2.3

python-flask security update

Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks.

Security Fix(es):

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.(CVE-2026-27205)

Record
OESA-2026-2135
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVOESA-2026-2136 2.3

python-flask security update

Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks.

Security Fix(es):

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.(CVE-2026-27205)

Record
OESA-2026-2136
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVOESA-2026-2137 2.3

python-flask security update

Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks.

Security Fix(es):

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.(CVE-2026-27205)

Record
OESA-2026-2137
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVPYSEC-2026-2151 4.3

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.

Record
PYSEC-2026-2151
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Updated
2026-11-02
OSVROOT-APP-PYPI-CVE-2026-27205 4.3

CVE-2026-27205 in rootio-Flask - Patched by Root

Root has patched CVE-2026-27205 in the rootio-Flask package for Root:PyPI. Multiple fixed versions available.

Record
ROOT-APP-PYPI-CVE-2026-27205
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2026-27205 2.3

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.

Record
UBUNTU-CVE-2026-27205
CVSS 4.0
2.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Updated
2026-11-02
OSVCLSA-2026-1789727592 No score

TuxCare security update for flask (1 CVE)

TuxCare rebuilt flask to address 1 CVE. Fixed in 2.2.5.post1+tuxcare.

Record
CLSA-2026-1789727592
Updated
2026-11-02
OSVCLSA-2026-1789986000 No score

TuxCare security update for flask (1 CVE)

TuxCare rebuilt flask to address 1 CVE. Fixed in 1.1.4.post3+tuxcare.

Record
CLSA-2026-1789986000
Updated
2026-11-02
OSVCLSA-2026-1789986625 No score

TuxCare security update for flask (1 CVE)

TuxCare rebuilt flask to address 1 CVE. Fixed in 1.1.2.post2+tuxcare.

Record
CLSA-2026-1789986625
Updated
2026-11-02
OSVCLSA-2026-1789986626 No score

TuxCare security update for flask (2 CVEs)

TuxCare rebuilt flask to address 2 CVEs. Fixed in 0.12.5.post2+tuxcare.

Record
CLSA-2026-1789986626
Updated
2026-11-02
OSVCLSA-2026-1789987201 No score

TuxCare security update for flask (2 CVEs)

TuxCare rebuilt flask to address 2 CVEs. Fixed in 2.2.1.post2+tuxcare.

Record
CLSA-2026-1789987201
Updated
2026-11-02
OSVopenSUSE-SU-2026:10264-1 No score

python311-Flask-3.1.3-1.1 on GA media

These are all security issues fixed in the python311-Flask-3.1.3-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:10264-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:20885-1 No score

Security update for python-Flask

This update for python-Flask fixes the following issue:

  • CVE-2026-27205: information disclosure due to Flask session not adding the Vary: Cookie header (bsc#1258700).
Record
openSUSE-SU-2026:20885-1
Updated
2026-11-02
OSVSUSE-SU-2026:0849-1 No score

Security update for python-Flask

This update for python-Flask fixes the following issue:

  • CVE-2026-27205: information disclosure due to Flask session not adding the Vary: Cookie header (bsc#1258700).
Record
SUSE-SU-2026:0849-1
Updated
2026-11-02
OSVSUSE-SU-2026:22023-1 No score

Security update for python-Flask

This update for python-Flask fixes the following issue:

  • CVE-2026-27205: information disclosure due to Flask session not adding the Vary: Cookie header (bsc#1258700).
Record
SUSE-SU-2026:22023-1
Updated
2026-11-02
OSVUSN-8104-1 No score

flask vulnerability

Shourya Jaiswal discovered that Flask did not correctly mark certain web responses as user-specific. A remote attacker could possibly use this issue to obtain sensitive information.

Record
USN-8104-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
flask
PyPI
before 3.1.3
3.1.3
flask
TuxCare:PyPI
2.2.5 up to 2.2.5.post1+tuxcare
2.2.5.post1+tuxcare
flask
TuxCare:PyPI
1.1.4 up to 1.1.4.post3+tuxcare, plus listed versions
1.1.4.post1+tuxcare1.1.4.post2+tuxcare
1.1.4.post3+tuxcare
flask
TuxCare:PyPI
1.1.2 up to 1.1.2.post2+tuxcare, plus listed versions
1.1.2.post1+tuxcare
1.1.2.post2+tuxcare
flask
TuxCare:PyPI
From an advisory covering 2 CVEs
0.12.5 up to 0.12.5.post2+tuxcare, plus listed versions
0.12.5.post1+tuxcare
0.12.5.post2+tuxcare
flask
TuxCare:PyPI
From an advisory covering 2 CVEs
2.2.1 up to 2.2.1.post2+tuxcare, plus listed versions
2.2.1.post1+tuxcare
2.2.1.post2+tuxcare
flask
Debian:12
All versions, plus listed versions
2.2.2-32.2.5-13.0.0-13.0.1-13.0.2-1
Show 9 moreShow less
3.0.3-13.1.0-13.1.0-23.1.1-13.1.2-13.1.3-13.1.3-23.1.3-33.1.3-4
None known
flask
Debian:13
before 3.1.1-1+deb13u1, plus listed versions
3.1.1-1
3.1.1-1+deb13u1
flask
Debian:14
before 3.1.3-1, plus listed versions
3.1.1-13.1.2-1
3.1.3-1
flask
PyPI
before 3.1.3, plus listed versions
0.10.100.10.10.110.11.1
Show 45 moreShow less
0.120.12.10.12.20.12.30.12.40.12.50.20.30.3.10.40.50.5.10.5.20.60.6.10.70.7.10.7.20.80.8.10.91.01.0.11.0.21.0.31.0.41.1.01.1.11.1.21.1.31.1.42.0.02.0.0rc12.0.0rc22.0.12.0.22.0.32.1.02.1.12.1.22.1.32.2.02.2.12.2.22.2.3
3.1.3
Show 16 moreShow less
Affected packages
PackageAffectedFixed
python-flask
openEuler:24.03-LTS-SP3
before 2.2.5-2.oe2403sp3
2.2.5-2.oe2403sp3
python-flask
openEuler:24.03-LTS
before 2.2.5-2.oe2403
2.2.5-2.oe2403
python-flask
openEuler:24.03-LTS-SP1
before 2.2.5-2.oe2403sp1
2.2.5-2.oe2403sp1
rootio-Flask
Root:PyPI
before 3.1.2+root.io.1
3.1.2+root.io.13.1.2+root.io.23.1.1+root.io.13.1.1+root.io.23.1.2+root.io.32.3.3+root.io.12.3.3+root.io.23.0.3+root.io.1
Flask
Root:PyPI
before 3.1.1+aikido.2
3.1.1+aikido.23.1.2+aikido.3
python-Flask
SUSE:Linux Enterprise Module for Python 3 15 SP7
before 2.3.2-150400.3.9.1
2.3.2-150400.3.9.1
python-Flask
openSUSE:Leap 15.6
before 2.3.2-150400.3.9.1
2.3.2-150400.3.9.1
python-Flask
SUSE:Linux Enterprise Server 16.0
before 3.1.1-160000.3.1
3.1.1-160000.3.1
python-Flask
SUSE:Linux Enterprise Server for SAP applications 16.0
before 3.1.1-160000.3.1
3.1.1-160000.3.1
flask
Ubuntu:16.04:LTS
All versions, plus listed versions
0.10.1-2build20.10.1-2ubuntu0.1
None known
flask
Ubuntu:18.04:LTS
All versions, plus listed versions
0.12.2-20.12.2-30.12.2-3ubuntu0.1
None known
flask
Ubuntu:Pro:20.04:LTS
before 1.1.1-2ubuntu0.1+esm1, plus listed versions
1.0.2-31.1.1-21.1.1-2ubuntu0.1
1.1.1-2ubuntu0.1+esm1
flask
Ubuntu:22.04:LTS
before 2.0.1-2ubuntu1.2, plus listed versions
1.1.2-22.0.1-2ubuntu12.0.1-2ubuntu1.1
2.0.1-2ubuntu1.2
flask
Ubuntu:24.04:LTS
before 3.0.2-1ubuntu1.1, plus listed versions
2.2.5-1ubuntu13.0.2-1ubuntu1
3.0.2-1ubuntu1.1
flask
Ubuntu:25.10
All versions, plus listed versions
3.1.0-2ubuntu13.1.1-1ubuntu13.1.2-1ubuntu1
None known
python-Flask
openSUSE:Tumbleweed
before 3.1.3-1.1
3.1.3-1.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-27205 is a low vulnerability (CVSS 2.3) in Pallets Flask, published February 19, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.40%, the 34th percentile. Fixed in flask 3.1.3.

References

Show 12 moreShow less
This page doesn't list everything

Left out here: 13 versions. The JSON record has them.

MoveEnter Open