PyPI: future

CVE-2022-40899

Safety vulnerability ID: SFTY-20221223-55242

Safety legacy ID: pyup.io-52510

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 https://github.com/python/cpython/pull/17157

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Python Charmers Future denial of service vulnerability

Advisory

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 https://github.com/python/cpython/pull/17157

Affected Package

Affecting future package, versions<=0.18.2

Also affects

---

How to Fix

Upgradefutureto0.18.3or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more