Use of Cache Containing Sensitive Information Affecting flask package, versions [,3.1.3)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-FLASK-15322678
  • published20 Feb 2026
  • disclosed19 Feb 2026
  • creditShourya Jaiswal

Introduced: 19 Feb 2026

CVE-2026-27205  (opens in a new tab)
CWE-524  (opens in a new tab)

How to fix?

Upgrade flask to version 3.1.3 or higher.

Overview

Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information in the session object. An attacker can cause sensitive user-specific responses to be cached and served to other users by leveraging a caching proxy that does not ignore responses with cookies, when the application does not set a Cache-Control header and accesses the session only for keys without mutating or accessing values.

Note:

This is only exploitable if the application is hosted behind a caching proxy that does not ignore responses with cookies, does not set a Cache-Control header to indicate that a page is private or should not be cached, and accesses the session in a way that does not access the values, only the keys, and does not mutate the session.

CVSS Base Scores

version 4.0
version 3.1