Loading advisory.
Loading advisory.
Flask vulnerable to possible disclosure of permanent session cookie due to missing Vary: Cookie header
When all of the following conditions are met, a response containing data intended for one client may be cached and subsequently sent by a proxy to other clients. If the proxy also caches Set-Cookie headers, it may send one client's session cookie to other clients.
Published 2023-05-01 19:22 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| flask | PyPI | >= 2.3.0, < 2.3.2 < 2.2.5 git commits in https://github.com/pallets/flask: < 70f906c51ce49c485f1d355703e9cc3386b1cc2b git commits in https://github.com/pallets/flask: < afd63b16170b7c047f5758eb910c416511e9c965 versions 2.3.0, 2.3.1, 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 and 33 more | 2.3.2, 2.2.5, 70f906c51ce49c485f1d355703e9cc3386b1cc2b, afd63b16170b7c047f5758eb910c416511e9c965 | pip install --upgrade 'flask>=2.3.2'pip install --upgrade 'flask>=2.2.5'pip install --upgrade 'flask>=70f906c51ce49c485f1d355703e9cc3386b1cc2b'pip install --upgrade 'flask>=afd63b16170b7c047f5758eb910c416511e9c965' |
When all of the following conditions are met, a response containing data intended for one client may be cached and subsequently sent by a 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.
The application must be hosted behind a caching proxy that does not strip cookies or ignore responses with cookies.
The application sets session.permanent = True.
The application does not access or modify the session at any point during a request.
SESSION_REFRESH_EACH_REQUEST is enabled (the default).
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.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.013 on 2026-11-24 to 0.013 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.013 | first score | v2026.06.15 |
| 2026-11-26 | 0.013 | 0.013 | v2026.06.15 |