Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:deb/debian/flask@3.1.2-1?distro=trixie
purl pkg:deb/debian/flask@3.1.2-1?distro=trixie
Next non-vulnerable version 3.1.3-1
Latest non-vulnerable version 3.1.3-1
Risk 1.9
Vulnerabilities affecting this package (1)
Vulnerability Summary Fixed by
VCID-rx8q-6dwq-a3hs
Aliases:
CVE-2026-27205
GHSA-68rp-wp8r-4726
Flask session does not add `Vary: Cookie` header when accessed in some ways When the `session` object is accessed, Flask should set the `Vary: Cookie` header. This 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 depends on the application's use of the session, and the cache's behavior regarding cookies. The risk depends on all these conditions being met. 1. The application must be hosted behind a caching proxy that does not ignore responses with cookies. 2. The application does not set a `Cache-Control` header to indicate that a page is private or should not be cached. 3. The application accesses the session in a way that does not access the values, only the keys, and does not mutate the session.
3.1.3-1
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (4)
Vulnerability Summary Aliases
VCID-6f2e-66xz-t7cu Flask is a lightweight WSGI web application framework. When all of the following conditions are met, a response containing data intended for one client may be cached and subsequently sent by the proxy to other clients. If the proxy also caches `Set-Cookie` headers, it may send one client's `session` cookie to other clients. The severity depends on the application's use of the session and the proxy's behavior regarding cookies. The risk depends on all these conditions being met. 1. The application must be hosted behind a caching proxy that does not strip cookies or ignore responses with cookies. 2. The application sets `session.permanent = True` 3. The application does not access or modify the session at any point during a request. 4. `SESSION_REFRESH_EACH_REQUEST` enabled (the default). 5. The application does not set a `Cache-Control` header to indicate that a page is private or should not be cached. This happens because vulnerable versions of Flask only set the `Vary: Cookie` header when the session is accessed or modified, not when it is refreshed (re-sent to update the expiration) without being accessed or modified. This issue has been fixed in versions 2.3.2 and 2.2.5. CVE-2023-30861
GHSA-m2qf-hxjv-5gpq
PYSEC-2023-62
VCID-bmjp-tau8-bugq The Pallets Project Flask before 1.0 is affected by: unexpected memory usage. The impact is: denial of service. The attack vector is: crafted encoded JSON data. The fixed version is: 1. NOTE: this may overlap CVE-2018-1000656. CVE-2019-1010083
GHSA-5wv5-4vpf-pj6m
PYSEC-2019-179
VCID-y5ke-uj7u-rydk The Pallets Project flask version Before 0.12.3 contains a CWE-20: Improper Input Validation vulnerability in flask that can result in Large amount of memory usage possibly leading to denial of service. This attack appear to be exploitable via Attacker provides JSON data in incorrect encoding. This vulnerability appears to have been fixed in 0.12.3. NOTE: this may overlap CVE-2019-1010083. CVE-2018-1000656
GHSA-562c-5r94-xh97
PYSEC-2018-66
VCID-ypj9-hez8-qbcs Flask uses fallback key instead of current signing key 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` are 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. CVE-2025-47278
GHSA-4grg-w6v8-c28g

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T13:03:23.956878+00:00 Debian Importer Fixing VCID-bmjp-tau8-bugq https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T11:41:11.966158+00:00 Debian Importer Fixing VCID-6f2e-66xz-t7cu https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T10:22:39.502452+00:00 Debian Importer Fixing VCID-ypj9-hez8-qbcs https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T08:40:13.362285+00:00 Debian Importer Fixing VCID-y5ke-uj7u-rydk https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-13T08:58:33.978027+00:00 Debian Importer Fixing VCID-bmjp-tau8-bugq https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T07:57:46.679180+00:00 Debian Importer Fixing VCID-6f2e-66xz-t7cu https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T06:59:29.219572+00:00 Debian Importer Fixing VCID-ypj9-hez8-qbcs https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T17:49:41.165076+00:00 Debian Importer Fixing VCID-y5ke-uj7u-rydk https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-03T07:23:59.065058+00:00 Debian Importer Affected by VCID-rx8q-6dwq-a3hs https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:23:59.019257+00:00 Debian Importer Fixing VCID-ypj9-hez8-qbcs https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:23:58.959886+00:00 Debian Importer Fixing VCID-6f2e-66xz-t7cu https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:23:58.913041+00:00 Debian Importer Fixing VCID-bmjp-tau8-bugq https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:23:58.858236+00:00 Debian Importer Fixing VCID-y5ke-uj7u-rydk https://security-tracker.debian.org/tracker/data/json 38.1.0