Skip to content

CVE-2026-27205 Flask session does not add `Vary: Cookie` header when accessed in some ways

LowCVSS 2.3 EPSS 0.39%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

13 packages: 6 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
debian/flask(Debian 12) = 2.2.2-3; = 2.2.5-1; = 3.0.0-1; = 3.0.1-1 +11 more No fix listed No fix yet
redhat/quay/quay-rhel9(Red Hat quay 3) All versions No fix listed No fix yet
redhat/satellite/iop-advisor-engine-rhel9(Red Hat satellite 6) All versions No fix listed No fix yet
redhat/satellite/iop-host-inventory-rhel9(Red Hat satellite 6) All versions No fix listed No fix yet
redhat/satellite/iop-insights-engine-rhel9(Red Hat satellite 6) All versions No fix listed No fix yet
redhat/satellite/iop-vulnerability-engine-rhel9(Red Hat satellite 6) All versions No fix listed No fix yet
debian/flask(Debian 13) < 3.1.1-1+deb13u1; = 3.1.1-1 3.1.1-1+deb13u1 Fixed
debian/flask(Debian 14) < 3.1.3-1; = 3.1.1-1; = 3.1.2-1 3.1.3-1 Fixed
palletsprojects flask < 3.1.3 3.1.3 Fixed
pypi flask(PyPI) < 3.1.3; = 0.1; = 0.2; = 0.3 +60 more 3.1.3 Fixed
ubuntu/flask(Ubuntu 22.04) < 2.0.1-2ubuntu1.2 2.0.1-2ubuntu1.2 Fixed
ubuntu/flask(Ubuntu 24.04) < 3.0.2-1ubuntu1.1 3.0.2-1ubuntu1.1 Fixed
pallets flask = < 3.1.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi flask(PyPI) < 3.1.3 3.1.3
pypi flask(PyPI) = 0.1 No fix listed
pypi flask(PyPI) = 0.10 No fix listed
pypi flask(PyPI) = 0.10.1 No fix listed
pypi flask(PyPI) = 0.11 No fix listed
pypi flask(PyPI) = 0.11.1 No fix listed
pypi flask(PyPI) = 0.12 No fix listed
pypi flask(PyPI) = 0.12.1 No fix listed
pypi flask(PyPI) = 0.12.2 No fix listed
pypi flask(PyPI) = 0.12.3 No fix listed
pypi flask(PyPI) = 0.12.4 No fix listed
pypi flask(PyPI) = 0.12.5 No fix listed
pypi flask(PyPI) = 0.2 No fix listed
pypi flask(PyPI) = 0.3 No fix listed
pypi flask(PyPI) = 0.3.1 No fix listed
pypi flask(PyPI) = 0.4 No fix listed
pypi flask(PyPI) = 0.5 No fix listed
pypi flask(PyPI) = 0.5.1 No fix listed
pypi flask(PyPI) = 0.5.2 No fix listed
pypi flask(PyPI) = 0.6 No fix listed
pypi flask(PyPI) = 0.6.1 No fix listed
pypi flask(PyPI) = 0.7 No fix listed
pypi flask(PyPI) = 0.7.1 No fix listed
pypi flask(PyPI) = 0.7.2 No fix listed
pypi flask(PyPI) = 0.8 No fix listed
Show 71 more
ProductAffected versionsFixed in
pypi flask(PyPI) = 0.8.1 No fix listed
pypi flask(PyPI) = 0.9 No fix listed
pypi flask(PyPI) = 1.0 No fix listed
pypi flask(PyPI) = 1.0.1 No fix listed
pypi flask(PyPI) = 1.0.2 No fix listed
pypi flask(PyPI) = 1.0.3 No fix listed
pypi flask(PyPI) = 1.0.4 No fix listed
pypi flask(PyPI) = 1.1.0 No fix listed
pypi flask(PyPI) = 1.1.1 No fix listed
pypi flask(PyPI) = 1.1.2 No fix listed
pypi flask(PyPI) = 1.1.3 No fix listed
pypi flask(PyPI) = 1.1.4 No fix listed
pypi flask(PyPI) = 2.0.0 No fix listed
pypi flask(PyPI) = 2.0.0rc1 No fix listed
pypi flask(PyPI) = 2.0.0rc2 No fix listed
pypi flask(PyPI) = 2.0.1 No fix listed
pypi flask(PyPI) = 2.0.2 No fix listed
pypi flask(PyPI) = 2.0.3 No fix listed
pypi flask(PyPI) = 2.1.0 No fix listed
pypi flask(PyPI) = 2.1.1 No fix listed
pypi flask(PyPI) = 2.1.2 No fix listed
pypi flask(PyPI) = 2.1.3 No fix listed
pypi flask(PyPI) = 2.2.0 No fix listed
pypi flask(PyPI) = 2.2.1 No fix listed
pypi flask(PyPI) = 2.2.2 No fix listed
pypi flask(PyPI) = 2.2.3 No fix listed
pypi flask(PyPI) = 2.2.4 No fix listed
pypi flask(PyPI) = 2.2.5 No fix listed
pypi flask(PyPI) = 2.3.0 No fix listed
pypi flask(PyPI) = 2.3.1 No fix listed
pypi flask(PyPI) = 2.3.2 No fix listed
pypi flask(PyPI) = 2.3.3 No fix listed
pypi flask(PyPI) = 3.0.0 No fix listed
pypi flask(PyPI) = 3.0.1 No fix listed
pypi flask(PyPI) = 3.0.2 No fix listed
pypi flask(PyPI) = 3.0.3 No fix listed
pypi flask(PyPI) = 3.1.0 No fix listed
pypi flask(PyPI) = 3.1.1 No fix listed
pypi flask(PyPI) = 3.1.2 No fix listed
pallets flask = < 3.1.3 No fix listed
debian/flask(Debian:12) All versions No fix listed
debian/flask(Debian:12) = 2.2.2-3 No fix listed
debian/flask(Debian:12) = 2.2.5-1 No fix listed
debian/flask(Debian:12) = 3.0.0-1 No fix listed
debian/flask(Debian:12) = 3.0.1-1 No fix listed
debian/flask(Debian:12) = 3.0.2-1 No fix listed
debian/flask(Debian:12) = 3.0.3-1 No fix listed
debian/flask(Debian:12) = 3.1.0-1 No fix listed
debian/flask(Debian:12) = 3.1.0-2 No fix listed
debian/flask(Debian:12) = 3.1.1-1 No fix listed
debian/flask(Debian:12) = 3.1.2-1 No fix listed
debian/flask(Debian:12) = 3.1.3-1 No fix listed
debian/flask(Debian:12) = 3.1.3-2 No fix listed
debian/flask(Debian:12) = 3.1.3-3 No fix listed
debian/flask(Debian:12) = 3.1.3-4 No fix listed
debian/flask(Debian:13) < 3.1.1-1+deb13u1 3.1.1-1+deb13u1
debian/flask(Debian:13) = 3.1.1-1 No fix listed
debian/flask(Debian:14) < 3.1.3-1 3.1.3-1
debian/flask(Debian:14) = 3.1.1-1 No fix listed
debian/flask(Debian:14) = 3.1.2-1 No fix listed
ubuntu/flask(Ubuntu:22.04) < 2.0.1-2ubuntu1.2 2.0.1-2ubuntu1.2
redhat/rhoai/odh-kf-notebook-controller-rhel8(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-notebook-controller-rhel8(Red Hat:openshift_ai) All versions No fix listed
redhat/quay/quay-rhel8(Red Hat:quay:3) All versions No fix listed
redhat/quay/quay-rhel9(Red Hat:quay:3) All versions No fix listed
redhat/satellite/iop-advisor-engine-rhel9(Red Hat:satellite:6) All versions No fix listed
redhat/satellite/iop-host-inventory-rhel9(Red Hat:satellite:6) All versions No fix listed
redhat/satellite/iop-insights-engine-rhel9(Red Hat:satellite:6) All versions No fix listed
redhat/satellite/iop-vulnerability-engine-rhel9(Red Hat:satellite:6) All versions No fix listed
ubuntu/flask(Ubuntu:24.04) < 3.0.2-1ubuntu1.1 3.0.2-1ubuntu1.1
palletsprojects flask < 3.1.3 3.1.3

References