CVE-2026-27205
Publiée le 2026-02-21 · Dernière modification le 2026-06-17
Les applications web conçues avec Flask version 3.1.2 ou antérieure sont concernées si elles sont hébergées derrière un proxy de mise en cache. Un attaquant pourrait potentiellement consulter des données sensibles et spécifiques à un utilisateur si un proxy de cache stocke et diffuse par erreur une page privée à d'autres utilisateurs. Cela nécessite une combinaison spécifique de conditions défavorables : le développeur doit utiliser une syntaxe Python particulière pour vérifier les clés de session et ne pas avoir défini ses propres en-têtes de cache « private ».
DÉTAIL DU VECTEUR CVSS
RÉFÉRENCES
Description officielle du NVD (en anglais)
Flask is a web server gateway interface (WSGI) web application framework. In versions 3.1.2 and below, when the session object is accessed, Flask should set the Vary: Cookie header., resulting in a Use of Cache Containing Sensitive Information vulnerability. The logic 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 and risk depend on the application being hosted behind a caching proxy that doesn't ignore responses with cookies, not setting a Cache-Control header to mark pages as private or non-cacheable, and accessing the session in a way that only touches keys without reading values or mutating the session. The issue has been fixed in version 3.1.3.