flask
Affected
- introduced
0, fixed3.1.3(ecosystem)
Fixed versions
3.1.3
Fix
- Fixed version
3.1.3pip install --upgrade flask==3.1.3
Advisory
Also known as: CVE-2026-27205, PYSEC-2026-2151
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.
Cache-Control header to indicate that a page is private or should not be cached.Low Basis: The source's own band: LOW
0, fixed 3.1.3 (ecosystem)3.1.3
3.1.3pip install --upgrade flask==3.1.3Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0