Skip to content

Commit f64065b

Browse files
Address security risk in futures<0.18.2 and some flask versions
52510: future <=0.18.2 resolved (0.16.0 installed)! Future 0.18.2 and earlier allows remote attackers to cause a denial of service via crafted Set-Cookie header from malicious web server. https://github.com/PythonCharmers/python-future/blob/master/src/future/backports/http/cookiejar.py#L215 python/cpython#17157 55261: flask <2.2.5 resolved (2.0.2 installed)! Flask 2.2.5 and 2.3.2 include a fix for CVE-2023-30861: When all of the following conditions are met, a response containing data intended for one client may be cached and subsequently sent by the proxy to other clients. If the proxy also caches 'Set-Cookie' headers, it may send one client's 'session' cookie to other clients. The severity depends on the application's use of the session and the proxy's behavior regarding cookies. The risk depends on all these conditions being met: 1. The application must be hosted behind a caching proxy that does not strip cookies or ignore responses with cookies. 2. The application sets 'session.permanent = True' 3. The application does not access or modify the session at any point during a request. 4. 'SESSION_REFRESH_EACH_REQUEST' enabled (the default). 5. The application does not set a 'Cache-Control' header to indicate that a page is private or should not be cached. This happens because vulnerable versions of Flask only set the 'Vary: Cookie' header when the session is accessed or modified, not when it is refreshed (re-sent to update the expiration) without being accessed or modified. GHSA-m2qf-hxjv-5gpq
1 parent 24d3e24 commit f64065b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Pipfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ aloe-django = "==0.2.0"
6464
factory-boy = "*"
6565
responses = "*"
6666
django-ses = "==2.6.0"
67-
future = "==0.16.0"
6867
django-pipeline = "==1.6.14"
6968
docutils = "==0.14"
7069
django-static-jquery = "==2.1.4"
@@ -82,7 +81,7 @@ django-formtools = "==2.2"
8281
django-debug-toolbar = "*"
8382
django-filter = "*"
8483
click = "==8.0.4"
85-
flask = "==2.0.2"
84+
flask = "==2.3.2"
8685

8786
[scripts]
8887
collectstatic = "python manage.py collectstatic -c --noinput"

0 commit comments

Comments
 (0)