HighGHSA-5pwr-322w-8jr4CVE-2026-27459PYSEC-2026-2269
pyOpenSSL DTLS cookie callback buffer overflow
Published 16 Mar 2026 · Updated 10 Sept 2026
Is your project on an affected pyopenssl?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
pyopensslPyPI
- Affected
- >=22.0.0 <26.0.0
- Fixed in
- 26.0.0
Update to the fixed version for your release line, for example:
pip install 'pyopenssl>=26.0.0'Details
If a user provided callback to set_cookie_generate_callback returned a cookie value greater than 256 bytes, pyOpenSSL would overflow an OpenSSL provided buffer.
Cookie values that are too long are now rejected.
Is GHSA-5pwr-322w-8jr4 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected pyopenssl, and gives you the command that fixes it.
More advisories for pyopenssl
- LowCVE-2026-27448pyOpenSSL allows TLS connection bypass via unhandled callback exception in set_tlsext_servername_callback · 16 Mar 2026
- HighCVE-2013-4314PyOpenSSL Mishandles NUL Byte In Certificate Subject Alternative Name · 17 May 2022
- HighCVE-2018-1000807PyOpenSSL Use-After-Free vulnerability · 10 Oct 2018
- HighCVE-2018-1000808Pyopenssl Incorrect Memory Management · 10 Oct 2018
References
- Linkgithub.com/pyca/pyopenssl/security/advisories/GHSA-5pwr-322w-8jr4
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-27459
- Linkgithub.com/pyca/pyopenssl/commit/57f09bb4bb051d3bc2a1abd36e9525313d5cd408
- Packagegithub.com/pyca/pyopenssl
- Linkgithub.com/pyca/pyopenssl/blob/358cbf29c4e364c59930e53a270116249581eaa3/CHANGELOG.rst
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.