Python Software Foundation vulnerabilities, page 3
90 vulnerabilities
Known vulnerabilities in Python Software Foundation products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 4 products.
RoutineCVE-2026-1502python software foundation · cpython +30 moreHTTP client proxy tunnel headers not validated for CR/LFCR/LF bytes were not rejected by HTTP client proxy tunnel headers or host.CVSS5.7MediumEPSS0.59%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-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-3479python software foundation · cpython +36 morepkgutil.get_data() does not enforce documented restrictionsDISPUTED: The project has clarified that the documentation was incorrect, and that pkgutil.get_data() has the same security model as open(). The documentation has been updated to clarify this point. There is no vulnerability in the function if following the intended security model.
pkgutil.get_data() did not validate the resource argument as documented, allowing path traversals.CVSS0.0UnknownEPSS0.27%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%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-2297python software foundation · cpython +45 moreSourcelessFileLoader does not use io.open_code()The import hook in CPython that handles legacy *.pyc files (SourcelessFileLoader) is incorrectly handled in FileLoader (a base class) and so does not use io.open_code() to read the .pyc files. sys.audit handlers for this audit event therefore do not fire.CVSS5.7MediumEPSS0.21%RoutineCVE-2026-1299python software foundation · cpython +82 moreemail BytesGenerator header injection due to unquoted newlinesThe
email module, specifically the "BytesGenerator" class, didn’t properly quote newlines for email headers when
serializing an email message allowing for header injection when an email
is serialized. This is only applicable if using "LiteralHeader" writing headers that don't respect email folding rules, the new behavior will reject the incorrectly folded headers in "BytesGenerator".CVSS6.0MediumEPSS0.57%RoutineCVE-2025-12781python software foundation · cpython +29 morebase64.b64decode() always accepts "+/" characters, despite setting altcharsWhen passing data to the b64decode(), standard_b64decode(), and urlsafe_b64decode() functions in the "base64" module the characters "+/" will always be accepted, regardless of the value of "altchars" parameter, typically used to establish an "alternative base64 alphabet" such as the URL safe alphabet. This behavior matches what is recommended in earlier base64 RFCs, but newer RFCs now recommend either dropping characters outside the specified base64 alphabet or raising an error. The old behavior has the possibility of causing data integrity issues.
This behavior can only be insecure if your application uses an alternate base64 alphabet (without "+/"). If your application does not use the "altchars" parameter or the urlsafe_b64decode() function, then your application does not use an alternative base64 alphabet.
The attached patches DOES NOT make the base64-decode behavior raise an error, as this would be a change in behavior and break existing programs. Instead, the patch deprecates the behavior which will be replaced with the newly recommended behavior in a future version of Python. Users are recommended to mitigate by verifying user-controlled inputs match the base64
alphabet they are expecting or verify that their application would not be
affected if the b64decode() functions accepted "+" or "/" outside of altchars.CVSS6.3MediumEPSS0.86%RoutineCVE-2026-0672python software foundation · cpython +28 moreHeader injection in http.cookies.MorselWhen using http.cookies.Morsel, user-controlled cookie values and parameters can allow injecting HTTP headers into messages. Patch rejects all control characters within cookie names, values, and parameters.CVSS6.0MediumEPSS0.48%RoutineCVE-2025-15367python software foundation · cpython +46 morePOP3 command injection in user-controlled commandsThe poplib module, when passed a user-controlled command, can have
additional commands injected using newlines. Mitigation rejects commands
containing control characters.CVSS5.9MediumEPSS0.38%RoutineCVE-2025-15366python software foundation · cpython +38 moreIMAP command injection in user-controlled commandsThe imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.CVSS5.9MediumEPSS0.43%RoutineCVE-2025-15282python software foundation · cpython +27 moreHeader injection via newlines in data URL mediatypeUser-controlled data URLs parsed by urllib.request.DataHandler allow injecting headers through newlines in the data URL mediatype.CVSS6.0MediumEPSS0.54%RoutineCVE-2026-0865python software foundation · cpython +57 morewsgiref.headers.Headers allows header newline injectionUser-controlled header names and values containing newlines can allow injecting HTTP headers.CVSS5.9MediumEPSS0.55%RoutineCVE-2025-11468python software foundation · cpython +25 moreFolding email comments of unfoldable characters doesn't preserve parenthesisWhen folding a long comment in an email header containing exclusively unfoldable characters, the parenthesis would not be preserved. This could be used for injecting headers into email messages where addresses are user-controlled and not sanitized.CVSS5.7MediumEPSS0.62%RoutineCVE-2025-12084python software foundation · cpython +64 moreQuadratic complexity in node ID cache clearingWhen building nested elements using xml.dom.minidom methods such as appendChild() that have a dependency on _clear_id_cache() the algorithm is quadratic. Availability can be impacted when building excessively nested documents.CVSS6.3MediumEPSS0.86%RoutineCVE-2025-13837python software foundation · cpython +24 moreOut-of-memory when loading PlistWhen loading a plist file, the plistlib module reads data in size specified by the file itself, meaning a malicious file can cause OOM and DoS issuesCVSS5.5MediumEPSS0.24%RoutineCVE-2025-13836python software foundation · cpython +31 moreExcessive read buffering DoS in http.clientWhen reading an HTTP response from a server, if no read amount is specified, the default behavior will be to use Content-Length. This allows a malicious server to cause the client to read large amounts of data into memory, potentially causing OOM or other DoS.CVSS7.5HighEPSS1.75%RoutineCVE-2025-6075python software foundation · cpython +35 moreQuadratic complexity in os.path.expandvars() with user-controlled templateIf the value passed to os.path.expandvars() is user-controlled a
performance degradation is possible when expanding environment
variables.CVSS5.5MediumEPSS0.15%