unstale

pypi / mitmproxy

mitmproxy

What changed in mitmproxy 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.

1 breaking1 security3 new APIs and options1 performance5 behavior and defaults18 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.1 on npm

mitmproxy 1229 changes

Breaking changes 1

  • Removes bless from hex editors to avoid issues with macOS.

    12.2.1release notes

Security 1

New APIs and options 3

  • The mitmproxy console supports adding and editing comments on individual flows.

    12.2.2release notes

  • The mitmproxy console Quick Help UI can be hidden with the H key.

    12.2.2release notes

  • Adds a configurable TCP inactivity timeout, defaulting to 600 seconds; previously it was hardcoded to 10 minutes for all TCP connections.

    12.2.1release notes

Performance 1

  • Reduces mitmweb FlowTable Redux subscriptions from O(rows) to O(1).

    12.2.2release notes

Behavior and default changes 5

  • Reduces CERT_EXPIRY to 199 days.

    12.2.2release notes

  • Compression algorithms use fastest settings by default, improving addon runtime performance when assigning to message.content.

    12.2.2release notes

  • mitmweb shows the intercept filter tag at the bottom for default options.

    12.2.2release notes

  • mitmweb adds the number of selected flows to the footer.

    12.2.2release notes

  • Falls back to UTF-8 for more content types.

    12.2.1release notes

Fixes and other changes 18

  • Generated leaf certificates are valid for 197 days instead of 199, keeping the 2-day notBefore backdate below Chromium's 200-day limit.

    12.2.3release notes

  • Fixed an IndexError when exporting flows to HAR if payloads have a UTF-8 continuation byte at the 100-byte cutoff.

    12.2.3release notes

  • Fixed a bug where mitmweb did not pick up its XSRF cookie.

    12.2.3release notes

  • Fixed authority and subject key identifier mismatch errors with custom CAs whose SubjectKeyIdentifier was not derived as SHA-1 of the public key.

    12.2.3release notes

  • Incoming traffic, such as websocket messages, no longer causes the console command panel to lose focus.

    12.2.2release notes

  • Failed CONNECT requests are now displayed.

    12.2.2release notes

  • Editors now allow content to be cleared to an empty string.

    12.2.2release notes

  • Fixes a bug that caused mitmweb to show a blank page on Windows.

    12.2.2release notes

  • No longer crashes when replacement strings contain backslash sequences.

    12.2.2release notes

  • Includes addon options in its output.

    12.2.2release notes

  • Value parsing exceptions now include the option name.

    12.2.2release notes

  • HTTP requests with uppercase schemes no longer receive a 400 Bad Request.

    12.2.2release notes

  • Correctly uses the provided key parameter instead of a hardcoded key string.

    12.2.2release notes

  • Flow files are flushed after each flow, allowing further processing.

    12.2.1release notes

  • Improves the check to support Chinese characters.

    12.2.1release notes

  • The mitmproxy console shows query parameters for requests with empty bodies.

    12.2.1release notes

  • Gracefully handles decoding raw binary payloads that previously caused “Raw cannot decode” or “failed to parse as JSON” errors.

    12.2.1release notes

  • Fixes the mitmweb URL when --web-host is an IPv6 address.

    12.2.1release notes