CVE-2026-27205
published low CVSS 4.0 · 2.3Flask session does not add `Vary: Cookie` header when accessed in some ways
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pallets | — | flask< 3.1.3 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1476 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | focal | flask | Advisory build | 1.1.1-2ubuntu0.1+esm1 | USN-8104-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-Flasknoarch | Advisory build | 2.3.2-150400.3.9.1 | SUSE-SU-2026:0849-1 |
| Amazon Linux | AL2023 | python-flasknoarch | Listed in advisory | Not stated | ALAS2023-2026-1476 |
| Ubuntu | jammy | flask | Advisory build | 2.0.1-2ubuntu1.2 | USN-8104-1 |
| Ubuntu | noble | flask | Advisory build | 3.0.2-1ubuntu1.1 | USN-8104-1 |
| SUSE / openSUSE | SLE-16 | python313-Flasknoarch | Advisory build | 3.1.1-160000.3.1 | SUSE-SU-2026:22023-1 |
Show 34 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-16 | python313-Flask-docnoarch | Advisory build | 3.1.1-160000.3.1 | SUSE-SU-2026:22023-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-Flasknoarch | Advisory build | 2.3.2-150400.3.9.1 | SUSE-SU-2026:0849-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-Flasknoarch | Advisory build | 2.3.2-150400.3.9.1 | SUSE-SU-2026:0849-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-Flask-docnoarch | Advisory build | 2.3.2-150400.3.9.1 | SUSE-SU-2026:0849-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Flasknoarch | Advisory build | 3.1.1-160000.3.1 | OPENSUSE-SU-2026:20885-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Flask-docnoarch | Advisory build | 3.1.1-160000.3.1 | OPENSUSE-SU-2026:20885-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flaskaarch64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flaskppc64le | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flasks390x | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flaskx86_64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flask-docaarch64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flask-docppc64le | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flask-docs390x | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Flask-docx86_64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Flaskaarch64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Flaskppc64le | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Flasks390x | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Flaskx86_64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Flask-docaarch64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Flask-docppc64le | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Flask-docs390x | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Flask-docx86_64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flaskaarch64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flaskppc64le | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flasks390x | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flaskx86_64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flask-docaarch64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flask-docppc64le | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flask-docs390x | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Flask-docx86_64 | Advisory build | 3.1.3-1.1 | OPENSUSE-SU-2026:10264-1 |
| Ubuntu | focal | python3-flask | Advisory build | 1.1.1-2ubuntu0.1+esm1 | USN-8104-1 |
| Ubuntu | jammy | python3-flask | Advisory build | 2.0.1-2ubuntu1.2 | USN-8104-1 |
| Ubuntu | noble | python3-flask | Advisory build | 3.0.2-1ubuntu1.1 | USN-8104-1 |
| Amazon Linux | AL2023 | python-flasksrc | Listed in advisory | Not stated | ALAS2023-2026-1476 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.3 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pallets | flask | < 3.1.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-524 CWE-524: Use of Cache Containing Sensitive Information
References
3Provider assertions
2GitHub_M · cna
Flask session does not add `Vary: Cookie` header when accessed in some ways
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 74d024973432e77c39c048d8764eaf3e2cfe7e094bb51fdbc44c4cafda885c82
- Ingested
- 23 Sep 2026, 09:07:24 UTC
- Source record
- Official CVE record