CVE-2025-47278
Flask uses fallback key instead of current signing key
Flask is a web server gateway interface (WSGI) web application framework. In Flask 3.1.0, the way fallback key configuration was handled resulted in the last fallback key being used for signing, rather than the current signing key. Signing is provided by the `itsdangerous` library. A list of keys can be passed, and it expects the last (top) key in the list to be the most recent key, and uses that for signing. Flask was incorrectly constructing that list in reverse, passing the signing key first. Sites that have opted-in to use key rotation by setting `SECRET_KEY_FALLBACKS` care likely to unexpectedly be signing their sessions with stale keys, and their transition to fresher keys will be impeded. Sessions are still signed, so this would not cause any sort of data integrity loss. Version 3.1.1 contains a patch for the issue.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.192% · 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-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 1.8 · published by GitHub_MCVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:01:30.120Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:01:30.120Z | CVE Program |
| epss | verified | 2026-11-19T16:04:40.990Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:02.626Z | OSV |
| affected | verified | 2026-11-19T12:01:30.120Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:01:30.120Z | CVE Program |
Affected versions and configuration
pallets flask; default status: unknown: = 3.1.0 [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-4grg-w6v8-c28g",
"aliases": [
"CVE-2025-47278",
"PYSEC-2026-1377"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.1.0"
},
{
"fixed": "3.1.1"
}
]
}
],
"package": {
"name": "flask",
"purl": "pkg:pypi/flask",
"ecosystem": "PyPI"
},
"versions": [
"3.1.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-4grg-w6v8-c28g/GHSA-4grg-w6v8-c28g.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/pallets/flask/security/advisories/GHSA-4grg-w6v8-c28g",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47278",
"type": "ADVISORY"
},
{
"url": "https://github.com/pallets/flask/commit/73d6504063bfa00666a92b07a28aaf906c532f09",
"type": "WEB"
},
{
"url": "https://github.com/pallets/flask",
"type": "PACKAGE"
},
{
"url": "https://github.com/pallets/flask/releases/tag/3.1.1",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-683"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2025-05-13T16:15:32Z",
"github_reviewed_at": "2025-05-13T20:25:26Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "PYSEC-2026-1377",
"aliases": [
"CVE-2025-47278",
"GHSA-4grg-w6v8-c28g"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.1.0"
},
{
"fixed": "3.1.1"
}
]
}
],
"package": {
"name": "flask",
"purl": "pkg:pypi/flask",
"ecosystem": "PyPI"
},
"versions": [
"3.1.0"
],
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/flask/PYSEC-2026-1377.yaml"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/pallets/flask/security/advisories/GHSA-4grg-w6v8-c28g",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47278",
"type": "ADVISORY"
},
{
"url": "https://github.com/pallets/flask/commit/73d6504063bfa00666a92b07a28aaf906c532f09",
"type": "FIX"
},
{
"url": "https://github.com/pallets/flask",
"type": "PACKAGE"
},
{
"url": "https://github.com/pallets/flask/releases/tag/3.1.1",
"type": "WEB"
},
{
"url": "https://pypi.org/project/flask",
"type": "PACKAGE"
},
{
"url": "https://github.com/advisories/GHSA-4grg-w6v8-c28g",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "pallets",
"product": "flask",
"versions": [
{
"status": "affected",
"version": "= 3.1.0"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-47278",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-05-13T20:13:56.371838Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-05-13T20:14:09.702Z"
}
}
]
}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.1 | 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:30.120ZArchived source JSON
Source publication: 2025-05-13T15:57:40.409Z
Source modification: 2025-05-13T20:14:09.702ZDocument fingerprint
59647fd3f5dcd74db738462baf51ea8291be0ad65f3df88e494a52dc0c4d93d8 - OSVConsulted: 2026-11-19T12:52:02.626ZArchived source JSON
Source publication: 2025-05-13T20:25:26.000Z
Source modification: 2026-09-10T03:50:24.238ZDocument fingerprint
d6e2b6c700e5bf0913afa8eb68b00ce03e7d870614de61bdb3814e3551826dc0 - OSVConsulted: 2026-11-19T12:52:02.626ZArchived source JSON
Source publication: 2026-07-07T16:02:52.410Z
Source modification: 2026-07-07T17:47:38.870ZDocument fingerprint
d6e2b6c700e5bf0913afa8eb68b00ce03e7d870614de61bdb3814e3551826dc0 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:40.990ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
a61f5deec65b1a30b54fc6ad686dda6767c11c22f88b3bf1af4c6db9cb0d67b3
Official status history
- UNKNOWN → PUBLISHED · · evidence