pypi / mitmproxy
mitmproxy
What changed in mitmproxy 11 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
6 breaking1 security13 new APIs and options3 performance14 behavior and defaults41 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmitmproxy 1260 changes
Breaking changes 5
Require Brotli 1.2.1 to include the upstream decoder fix for CVE-2026-111497.
Removes eMudhra CAs from the trust list in precompiled binaries.
Linux binaries now require glibc 2.36 or newer.
Removes bless from hex editors to avoid issues with macOS.
The htpasswd file parser is now custom and supports only bcrypt and SHA-1 hashing, which may affect files using other formats.
Security 1
mitmproxy has an LDAP Injection
New APIs and options 9
When enabled, block OCSP and CRL requests to eMudhra and Sectigo revocation hosts.
Can launch an isolated, proxy-configured instance of Microsoft Edge.
Adds an option to sign TLS certificates with a compromised eMudhra intermediate CA key.
The mitmweb Options editor now supports float addon options.
Adds a Browser addon function to launch an isolated, proxy-configured Microsoft Edge instance.
Adds a mitmweb theme option with
system,dark, andlightvalues;systemfollows the operating system's color-scheme preference.The mitmproxy console supports adding and editing comments on individual flows.
The mitmproxy console Quick Help UI can be hidden with the H key.
Adds a configurable TCP inactivity timeout, defaulting to 600 seconds; previously it was hardcoded to 10 minutes for all TCP connections.
Performance 1
Reduces mitmweb FlowTable Redux subscriptions from O(rows) to O(1).
Behavior and default changes 10
When enabled, block OCSP and CRL requests to eMudhra and Sectigo revocation hosts.
mitmproxy now supports Python 3.15, and binary releases ship with it by default.
mitmweb columns can be resized by dragging header edges or fit to contents by double-clicking; widths persist across reloads, and Appearance options control visible columns and restore default widths.
Raises the allowed upper bound to 4.16.0 on Python 3.12 so mitmproxy can be installed alongside packages requiring newer releases.
Reduces CERT_EXPIRY to 199 days.
Compression algorithms use fastest settings by default, improving addon runtime performance when assigning to message.content.
mitmweb shows the intercept filter tag at the bottom for default options.
mitmweb adds the number of selected flows to the footer.
Falls back to UTF-8 for more content types.
mitmproxy now supports Python 3.14, and binary releases ship with Python 3.14 by default.
Fixes and other changes 34
Fix an error message that contained an unformatted %s placeholder.
Fix an error message for unsupported option types that contained an unformatted %s placeholder.
Refresh cookie expiration dates for empty-valued cookies during server replay.
Preserve caller-provided value lists when replacing query parameters or cookies with set_all().
Fixes AVIF images and
image/vnd.microsoft.iconfavicons not rendering in the mitmweb response tab.Basic authentication passwords may now contain colons.
Corrects contentview detection for XML files that start with CRLF.
In upstream mode, IPv6 target literals are bracketed in the CONNECT request and Host header, producing a valid authority.
Treats TLS versions rejected during context setup as unsupported instead of raising an unhandled
SSL.Error.The global option is no longer applied to proxy modes that do not bind a port, avoiding duplicate-server errors when enabling local capture.
Fixes modified reason phrases not being sent by mitmweb.
Correctly reads the SNI hostname from fragmented QUIC client hellos.
QUIC connections now start when
--allow-hostsor--ignore-hostsis set.Parsing no longer swallows subsequent attributes into
Expiresfor non-date or short values, and correctly parses RFC 850 dates with full weekday names.mitmweb now honors this option for live flows, placing new flows at the top instead of always appending them at the bottom.
Missing code-page tags now display as
UNKNOWN_TAG_XXinstead of raising aKeyError.Generated leaf certificates are valid for 197 days instead of 199, keeping the 2-day notBefore backdate below Chromium's 200-day limit.
Fixed an IndexError when exporting flows to HAR if payloads have a UTF-8 continuation byte at the 100-byte cutoff.
Fixed a bug where mitmweb did not pick up its XSRF cookie.
Fixed authority and subject key identifier mismatch errors with custom CAs whose SubjectKeyIdentifier was not derived as SHA-1 of the public key.
Incoming traffic, such as websocket messages, no longer causes the console command panel to lose focus.
Failed CONNECT requests are now displayed.
Editors now allow content to be cleared to an empty string.
Fixes a bug that caused mitmweb to show a blank page on Windows.
No longer crashes when replacement strings contain backslash sequences.
Includes addon options in its output.
Value parsing exceptions now include the option name.
HTTP requests with uppercase schemes no longer receive a 400 Bad Request.
Correctly uses the provided key parameter instead of a hardcoded key string.
Flow files are flushed after each flow, allowing further processing.
Improves the check to support Chinese characters.
The mitmproxy console shows query parameters for requests with empty bodies.
Gracefully handles decoding raw binary payloads that previously caused “Raw cannot decode” or “failed to parse as JSON” errors.
Fixes the mitmweb URL when --web-host is an IPv6 address.
mitmproxy 1118 changes
Breaking changes 1
For QUIC, Connection.tls_version now reports QUICv1 instead of QUIC.
New APIs and options 4
Adds an addon to update the alt-svc header in reverse mode.
Adds support for full mTLS with client certificates between the client and mitmproxy.
Adds an option to display ignored flows in the UI; it is a temporary workaround that will be removed in the future.
mitmproxy now supports transparent HTTP/3 proxying.
Performance 2
Streaming HTTP/2 no longer sends unnecessary empty data frames.
Fixes slow parsing of very large tnetstrings.
Behavior and default changes 4
HTTP/3 is now supported in HTTPS reverse-proxy mode.
The heuristic is tightened to better support custom TCP-based protocols.
mitmproxy officially supports Python 3.13.
mitmproxy emits a warning when a configured TLS version is unsupported by the current OpenSSL build.
Fixes and other changes 7
Improves the error message when the certs option is specified without a matching private key.
Fixes mitmproxy ignoring Ctrl+C/SIGTERM on OpenBSD.
Adds a getaddrinfo-based fallback when mitmproxy cannot determine the operating system's name servers.
Corrects the HAR import duration measurement unit to milliseconds.
Fixes transmission of intermediate certificates when using QUIC.
Fixes a crash when mitmproxy receives QUIC STOP_SENDING frames.
Fixes an error when unmarking all flows.