CVE-2026-27205
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.394% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 2.3 · published by GitHub_MCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:01:48.013Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T12:01:48.013Z | CVE Program |
| epss | verified | 2026-11-19T16:04:48.211Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:02.626Z | OSV |
| affected | verified | 2026-11-19T12:01:48.013Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:01:48.013Z | CVE Program |
Affected versions and configuration
pallets flask; default status: unknown: < 3.1.3 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
OSV · osv · full conditions
{
"id": "GHSA-68rp-wp8r-4726",
"aliases": [
"CVE-2026-27205",
"PYSEC-2026-2151"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.1.3"
}
]
}
],
"package": {
"name": "flask",
"purl": "pkg:pypi/flask",
"ecosystem": "PyPI"
},
"versions": [
"0.1",
"0.10",
"0.10.1",
"0.11",
"0.11.1",
"0.12",
"0.12.1",
"0.12.2",
"0.12.3",
"0.12.4",
"0.12.5",
"0.2",
"0.3",
"0.3.1",
"0.4",
"0.5",
"0.5.1",
"0.5.2",
"0.6",
"0.6.1",
"0.7",
"0.7.1",
"0.7.2",
"0.8",
"0.8.1",
"0.9",
"1.0",
"1.0.1",
"1.0.2",
"1.0.3",
"1.0.4",
"1.1.0",
"1.1.1",
"1.1.2",
"1.1.3",
"1.1.4",
"2.0.0",
"2.0.0rc1",
"2.0.0rc2",
"2.0.1",
"2.0.2",
"2.0.3",
"2.1.0",
"2.1.1",
"2.1.2",
"2.1.3",
"2.2.0",
"2.2.1",
"2.2.2",
"2.2.3",
"2.2.4",
"2.2.5",
"2.3.0",
"2.3.1",
"2.3.2",
"2.3.3",
"3.0.0",
"3.0.1",
"3.0.2",
"3.0.3",
"3.1.0",
"3.1.1",
"3.1.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-68rp-wp8r-4726/GHSA-68rp-wp8r-4726.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/pallets/flask/security/advisories/GHSA-68rp-wp8r-4726",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27205",
"type": "ADVISORY"
},
{
"url": "https://github.com/pallets/flask/commit/089cb86dd22bff589a4eafb7ab8e42dc357623b4",
"type": "WEB"
},
{
"url": "https://github.com/pallets/flask",
"type": "PACKAGE"
},
{
"url": "https://github.com/pallets/flask/releases/tag/3.1.3",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-524"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2026-02-21T06:17:00Z",
"github_reviewed_at": "2026-02-19T20:45:41Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "PYSEC-2026-2151",
"aliases": [
"CVE-2026-27205",
"GHSA-68rp-wp8r-4726"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.1.3"
}
]
}
],
"package": {
"name": "flask",
"purl": "pkg:pypi/flask",
"ecosystem": "PyPI"
},
"versions": [
"0.1",
"0.10",
"0.10.1",
"0.11",
"0.11.1",
"0.12",
"0.12.1",
"0.12.2",
"0.12.3",
"0.12.4",
"0.12.5",
"0.2",
"0.3",
"0.3.1",
"0.4",
"0.5",
"0.5.1",
"0.5.2",
"0.6",
"0.6.1",
"0.7",
"0.7.1",
"0.7.2",
"0.8",
"0.8.1",
"0.9",
"1.0",
"1.0.1",
"1.0.2",
"1.0.3",
"1.0.4",
"1.1.0",
"1.1.1",
"1.1.2",
"1.1.3",
"1.1.4",
"2.0.0",
"2.0.0rc1",
"2.0.0rc2",
"2.0.1",
"2.0.2",
"2.0.3",
"2.1.0",
"2.1.1",
"2.1.2",
"2.1.3",
"2.2.0",
"2.2.1",
"2.2.2",
"2.2.3",
"2.2.4",
"2.2.5",
"2.3.0",
"2.3.1",
"2.3.2",
"2.3.3",
"3.0.0",
"3.0.1",
"3.0.2",
"3.0.3",
"3.1.0",
"3.1.1",
"3.1.2"
],
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/flask/PYSEC-2026-2151.yaml"
},
"ecosystem_specific": {}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/pallets/flask/releases/tag/3.1.3",
"type": "ADVISORY"
},
{
"url": "https://github.com/pallets/flask/security/advisories/GHSA-68rp-wp8r-4726",
"type": "ADVISORY"
},
{
"url": "https://github.com/pallets/flask/commit/089cb86dd22bff589a4eafb7ab8e42dc357623b4",
"type": "FIX"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "pallets",
"product": "flask",
"versions": [
{
"status": "affected",
"version": "< 3.1.3"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-27205",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-02-24T19:02:52.515600Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-02-24T19:03:11.374Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | PyPI / package | flask | Not a distribution channel | 3.1.3 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:01:48.013ZArchived source JSON
Source publication: 2026-02-21T05:21:17.214Z
Source modification: 2026-02-24T19:03:11.374ZDocument fingerprint
74d024973432e77c39c048d8764eaf3e2cfe7e094bb51fdbc44c4cafda885c82 - OSVConsulted: 2026-11-19T12:52:02.626ZArchived source JSON
Source publication: 2026-02-19T20:45:41.000Z
Source modification: 2026-09-10T03:49:54.354ZDocument fingerprint
d6e2b6c700e5bf0913afa8eb68b00ce03e7d870614de61bdb3814e3551826dc0 - OSVConsulted: 2026-11-19T12:52:02.626ZArchived source JSON
Source publication: 2026-02-21T06:17:00.910Z
Source modification: 2026-07-13T07:15:25.033ZDocument fingerprint
d6e2b6c700e5bf0913afa8eb68b00ce03e7d870614de61bdb3814e3551826dc0 - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:48.211ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
2438b0af5d307bc4622b5c1b0dc3ffbe873c9bb6ab482509038cc59a4fc63d32
Official status history
- UNKNOWN → PUBLISHED · · evidence