Skip to main content
CVE-2026-27205VulnerabilityPublished Updated

In versions 3.1.2 and below, when the session object is accessed, Flask should set the Vary: Cookie header., resulting

Affects flaskSource GCVE Database

0
Compare
Authoritative record:CVE-2026-27205· Low 2.3

Not known to be exploited · CVSS 2.3 Low · fixed in 1.1.1-2ubuntu0.1+esm1 : update flask when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 34% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.1.1-2ubuntu0.1+esm1, 2.0.1-2ubuntu1.2, 3.0.2-1ubuntu1.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade the Ubuntu flask to 1.1.1-2ubuntu0.1+esm1 (package) or 2.0.1-2ubuntu1.2 (package) or 3.0.2-1ubuntu1.1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 25.10flaskpkg:deb/ubuntu/flask?arch=source&distro=questingOther threatsAffected
  • =3.1.0-2ubuntu1
  • =3.1.1-1ubuntu1
  • =3.1.2-1ubuntu1
Fixed in–
Ubuntu 24.04 LTSflaskpkg:deb/ubuntu/flask?arch=source&distro=nobleOther threatsAffected
  • <3.0.2-1ubuntu1.1
Fixed in
  • 3.0.2-1ubuntu1.1
Ubuntu 22.04 LTSflaskpkg:deb/ubuntu/flask?arch=source&distro=jammyOther threatsAffected
  • <2.0.1-2ubuntu1.2
Fixed in
  • 2.0.1-2ubuntu1.2
Ubuntu Pro 20.04 LTSflaskpkg:deb/ubuntu/flask?arch=source&distro=esm-infra/focalOther threatsAffected
  • <1.1.1-2ubuntu0.1+esm1
Fixed in
  • 1.1.1-2ubuntu0.1+esm1
Ubuntu 18.04 LTSflaskpkg:deb/ubuntu/flask?arch=source&distro=bionicOther threatsAffected
  • =0.12.2-2
  • =0.12.2-3
  • =0.12.2-3ubuntu0.1
Fixed in–
Ubuntu 16.04 LTSflaskpkg:deb/ubuntu/flask?arch=source&distro=xenialOther threatsAffected
  • =0.10.1-2build2
  • =0.10.1-2ubuntu0.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…