Python vulnerabilities, page 4

318 vulnerabilities

Known vulnerabilities in Python products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 32 products.

PrioritiseCVE-2026-44431urllib3 +330 moreurllib3: Sensitive headers forwarded across origins in proxied low-level redirectsurllib3 is an HTTP client library for Python. From 1.23 to before 2.7.0, cross-origin redirects followed from the low-level API via ProxyManager.connection_from_url().urlopen(..., assert_same_host=False) still forward these sensitive headers. This vulnerability is fixed in 2.7.0.CVSS8.2HighEPSS0.40%PrioritiseCVE-2026-44432urllib3 +252 moreurllib3: Decompression-bomb safeguards bypassed in parts of the streaming APIurllib3 is an HTTP client library for Python. From 2.6.0 to before 2.7.0, urllib3 could decompress the whole response instead of the requested portion (1) during the second HTTPResponse.read(amt=N) call when the response was decompressed using the official Brotli library or (2) when HTTPResponse.drain_conn() was called after the response had been read and decompressed partially (compression algorithm did not matter here). These issues could cause urllib3 to fully decode a small amount of highly compressed data in a single operation. This could result in excessive resource consumption (high CPU usage and massive memory allocation for the decompressed data) on the client side. This vulnerability is fixed in 2.7.0.CVSS8.9HighEPSS0.69%RoutineCVE-2026-7210python software foundation · cpython +34 moreThe expat and elementtree parsers use insufficient entropy for XML hash-flooding protection`xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML document to trigger hash flooding.\r\n\r\nFully mitigating this vulnerability requires both updating libexpat to 2.8.0 or later and applying this patch.CVSS7.5HighEPSS0.67%RoutineCVE-2026-42311python-pillow · pillow +13 morePillow: OOB Write with Invalid PSD Tile Extents (Integer Overflow)Pillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.CVSS8.6HighEPSS0.15%RoutineCVE-2026-42310python-pillow · pillow +13 morePillow: PDF Parsing Trailer Infinite Loop (DoS)Pillow is a Python imaging library. From version 4.2.0 to before version 12.2.0, an attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. This issue has been patched in version 12.2.0.CVSS5.5MediumEPSS0.17%RoutineCVE-2026-42308python-pillow · pillow +13 morePillow: Integer overflow when processing fontsPillow is a Python imaging library. Prior to version 12.2.0, if a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the current position, it may lead to an integer overflow. This issue has been patched in version 12.2.0.CVSS5.5MediumEPSS0.11%RoutineCVE-2026-42309python-pillow · pillow +12 morePillow: Heap buffer overflow with nested list coordinatesPillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cause a heap buffer overflow, as nested lists were recursively unpacked beyond the allocated buffer. Coordinate lists are now validated to contain exactly two numeric coordinates. This issue has been patched in version 12.2.0.CVSS5.5MediumEPSS0.13%RoutineCVE-2026-3087python software foundation · cpython +13 moreshutil.unpack_archive() doesn't check for Windows absolute paths in ZIPsIf `shutil.unpack_archive()` is given a ZIP archive with an absolute Windows path containing a drive (`C:\\...`) then the archive will be extracted outside the target directory which is different than other operating systems. Only Windows is affected by this vulnerability.CVSS7.5HighEPSS0.53%RoutineCVE-2026-6019python software foundation · cpython +68 moreBaseCookie.js_output() does not neutralize embedded charactershttp.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for JavaScript string context. It does not neutralize the HTML parser-sensitive sequence </script> inside the generated script element. Mitigation base64-encodes the cookie value to disallow escaping using cookie value.CVSS6.1MediumEPSS0.26%PrioritiseCVE-2026-40192python-pillow · pillow +19 morePillow is vulnerable to a FITS GZIP decompression bombPillow is a Python imaging library. Versions 10.3.0 through 12.1.1 did not limit the amount of GZIP-compressed data read when decoding a FITS image, making them vulnerable to decompression bomb attacks. A specially crafted FITS file could cause unbounded memory consumption, leading to denial of service (OOM crash or severe performance degradation). If users are unable to immediately upgrade, they should only open specific image formats, excluding FITS, as a workaround.CVSS8.7HighEPSS0.71%RoutineCVE-2026-4786python software foundation · cpython +60 moreIncomplete mitigation of CVE-2026-4519, %action expansion for command injection to webbrowser.open()Mitgation of CVE-2026-4519 was incomplete. If the URL contained "%action" the mitigation could be bypassed for certain browser types the "webbrowser.open()" API could have commands injected into the underlying shell. See CVE-2026-4519 for details.CVSS7.1HighEPSS0.31%PrioritiseCVE-2026-6100python software foundation · cpython +52 moreUse-after-free in lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile after re-use under memory pressureUse-after-free (UAF) was possible in the `lzma.LZMADecompressor`, `bz2.BZ2Decompressor`, and `gzip.GzipFile` when a memory allocation fails with a `MemoryError` and the decompression instance is re-used. This scenario can be triggered if the process is under memory pressure. The fix cleans up the dangling pointer in this specific error condition. The vulnerability is only present if the program re-uses decompressor instances across multiple decompression calls even after a `MemoryError` is raised during decompression. Using the helper functions to one-shot decompress data such as `lzma.decompress()`, `bz2.decompress()`, `gzip.decompress()`, and `zlib.decompress()` are not affected as a new decompressor instance is used per call. If the decompressor instance is not re-used after an error condition, this usage is similarly not vulnerable.CVSS9.1CriticalEPSS0.86%RoutineCVE-2026-5271python software foundation · pymanager +1 morePossible to hijack modules in current working directorypymanager included the current working directory in sys.path meaning modules could be shadowed by modules in the current working directory. As a result, if a user executes a pymanager-generated command (e.g., pip, pytest) from an attacker-controlled directory, a malicious module in that directory can be imported and executed instead of the intended package.CVSS7.8HighEPSS0.21%RoutineCVE-2026-25645psf · requests +207 moreRequests has Insecure Temp File Reuse in its extract_zipped_paths() utility functionRequests is a HTTP library. Prior to version 2.33.0, the `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one. Standard usage of the Requests library is not affected by this vulnerability. Only applications that call `extract_zipped_paths()` directly are impacted. Starting in version 2.33.0, the library extracts files to a non-deterministic location. If developers are unable to upgrade, they can set `TMPDIR` in their environment to a directory with restricted write access.CVSS5.5MediumEPSS0.31%RoutineCVE-2026-4519python software foundation · cpython +76 morewebbrowser.open() allows leading dashes in URLsThe webbrowser.open() API would accept leading dashes in the URL which could be handled as command line options for certain web browsers. New behavior rejects leading dashes. Users are recommended to sanitize URLs prior to passing to webbrowser.open().CVSS7.1HighEPSS0.35%RoutineCVE-2026-4224python software foundation · cpython +29 moreStack overflow parsing XML with deeply nested DTD content modelsWhen an Expat parser with a registered ElementDeclHandler parses an inline document type definition containing a deeply nested content model a C stack overflow occurs.CVSS7.5HighEPSS0.77%RoutineCVE-2026-3644python software foundation · cpython +28 moreIncomplete control character validation in http.cookiesThe fix for CVE-2026-0672, which rejected control characters in http.cookies.Morsel, was incomplete. The Morsel.update(), |= operator, and unpickling paths were not patched, allowing control characters to bypass input validation. Additionally, BaseCookie.js_output() lacked the output validation applied to BaseCookie.output().CVSS7.5HighEPSS0.54%PrioritiseCVE-2026-32274psf · black +12 moreBlack: Arbitrary file writes from unsanitized user input in cache file nameBlack is the uncompromising Python code formatter. Starting in version 24.3.0 and prior to version 26.3.1, Black writes a cache file, the name of which is computed from various formatting options. The value of the --python-cell-magics option was placed in the filename without sanitization, which allowed an attacker who controls the value of this argument to write cache files to arbitrary file system locations. Fixed in Black 26.3.1.CVSS8.7HighEPSS0.69%RoutineCVE-2025-13462python software foundation · cpython +27 moretarfile: Skip DIRTYPE normalization during GNU LONGNAME/LONGLINK handlingThe "tarfile" module would still apply normalization of AREGTYPE (\x00) blocks to DIRTYPE, even while processing a multi-block member such as GNUTYPE_LONGNAME or GNUTYPE_LONGLINK. This could result in a crafted tar archive being misinterpreted by the tarfile module compared to other implementations.CVSS3.3LowEPSS0.18%RoutineCVE-2026-31900psf · black +4 moreBlack's vulnerable version parsing leads to RCE in GitHub ActionBlack is the uncompromising Python code formatter. Black provides a GitHub action for formatting code. This action supports an option, use_pyproject: true, for reading the version of Black to use from the repository pyproject.toml. A malicious pull request could edit pyproject.toml to use a direct URL reference to a malicious repository. This could lead to arbitrary code execution in the context of the GitHub Action. Attackers could then gain access to secrets or permissions available in the context of the action. Version 26.3.0 fixes this vulnerability.CVSS9.8CriticalEPSS0.52%