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.
Cache-Control header to indicate that a page is private or should not be cached.{
"nvd_published_at": "2026-02-21T06:17:00Z",
"github_reviewed_at": "2026-02-19T20:45:41Z",
"github_reviewed": true,
"severity": "LOW",
"cwe_ids": [
"CWE-524"
]
}