CVE-2026-27205

CVE-2026-27205 is a medium-severity vulnerability in Palletsprojects Flask with a CVSS 3.x base score of 4.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-524.

Key facts

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.

Frequently asked questions

What is 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.
How severe is CVE-2026-27205?
CVE-2026-27205 has a CVSS 3.x base score of 4.3, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is low, integrity none, and availability none.
Is CVE-2026-27205 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (29th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2026-27205?
CVE-2026-27205 affects Palletsprojects Flask. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2026-27205?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2026-27205 have an EU (EUVD) identifier?
Yes. CVE-2026-27205 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-7731.
When was CVE-2026-27205 published?
CVE-2026-27205 was published on 2026-02-21 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Palletsprojects Flask

All CVEs affecting Palletsprojects Flask →

Other CWE-524 vulnerabilities

Browse all CWE-524 vulnerabilities →

Threat intelligence

Threat-intel indicators referencing this CVE: