unstale

pypi / python-multipart

python-multipart

What changed in python-multipart 0.0, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

11 breaking10 security2 new APIs and options5 performance1 behavior and defaults9 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

python-multipart 0.038 changes

Breaking changes 11

  • Spaces and tabs after delimiters between parts are recognized as transport padding; malformed padding raises MultipartParseError instead of being returned as part data. Padded opening boundaries remain unsupported.

    0.0.34release notes

  • Content types with parameters are lowercased, so Multipart/Form-Data; boundary=abc returns multipart/form-data.

    0.0.33release notes

  • Python 3.11 is now the minimum supported version; Python 3.10 is no longer supported.

    0.0.33release notes

  • Ignores RFC 2231 extended parameters when parsing options headers.

    0.0.30release notessecurity advisory

  • Only & is treated as the urlencoded field separator.

    0.0.30release notessecurity advisory

  • Preamble data before the first multipart boundary is skipped.

    0.0.26release notes

  • Custom FormParser classes are removed.

    0.0.25release notes

  • The unused trust_x_headers parameter was removed.

    0.0.23release notes

  • The X-File-Name fallback was removed.

    0.0.23release notes

  • The filename no longer includes the directory path, changing the value developers receive from File.

    0.0.22release notes

  • Adds support for Python 3.14 and drops support for end-of-life Python 3.8 and 3.9.

    0.0.21release notes

Security 10

  • Transfer-encoding decoders are finalized at the end of each part, and quoted-printable escapes split across writes decode correctly before callbacks run.

    0.0.33release notes

  • FormParser accepts the opt-in MAX_FIELD_SIZE option to cap URL-encoded fields while streaming; it raises FormParserError before oversized data is buffered.

    0.0.33release notes

  • FormParser accepts the opt-in MAX_FIELDS option to cap URL-encoded fields while streaming; it raises FormParserError before oversized data is buffered.

    0.0.33release notes

  • Header field name size is bounded before validation.

    0.0.31release notes

  • parse_form validates that Content-Length is non-negative.

    0.0.31release notessecurity advisory

  • python-multipart: Quadratic-time querystring parsing with semicolon separators causes CPU denial of service

    0.0.30security advisory

  • Multipart boundary length is capped at 256 bytes.

    0.0.28release notes

  • python-multipart has Denial of Service via unbounded multipart part headers

    0.0.27security advisoryrelease notes

  • python-multipart affected by Denial of Service via large multipart preamble or epilogue data

    0.0.26security advisory

  • Python-Multipart has Arbitrary File Write via Non-Default Configuration

    0.0.22security advisory

New APIs and options 2

  • Adds MIME content type information to File.

    0.0.25release notes

  • Adds UPLOAD_DELETE_TMP to FormParser configuration.

    0.0.25release notes

Performance 5

  • Parsing forms with many fields has less overhead because complete CRLF sequences are consumed without stepping through each intermediate parser state, and mark-helper functions are not created on each write.

    0.0.34release notes

  • Parsing is faster because the parser reuses separator positions and starts the next field directly when its data is already available.

    0.0.34release notes

  • Complete boundaries are matched in one step, making opening boundary matching faster.

    0.0.33release notes

  • Multipart header parsing and callback dispatch are faster.

    0.0.31release notes

  • The partial-boundary tail scan is faster through use of bytes.find.

    0.0.28release notes

Behavior and default changes 1

  • Epilogue data after the closing boundary is silently discarded.

    0.0.26release notes

Fixes and other changes 9

  • Parsers constructed without callbacks now get separate dictionaries, so calling set_callback() on one no longer changes another parser's handlers.

    0.0.34release notes

  • The function trims only spaces and tabs, preserving non-ASCII parameter bytes such as UTF-8 bytes for à.

    0.0.34release notes

  • Uploads without a filename no longer raise AttributeError when spilled to disk with UPLOAD_KEEP_EXTENSIONS or UPLOAD_KEEP_FILENAME set.

    0.0.33release notes

  • A str upload directory works with UPLOAD_KEEP_FILENAME instead of failing on the first write to disk.

    0.0.33release notes

  • Handles malformed RFC 2231 continuations.

    0.0.29release notes

  • CTE values are handled case-insensitively.

    0.0.25release notes

  • A trailing bare field name now emits field_end when finalized.

    0.0.25release notes

  • Multipart headers are handled case-insensitively.

    0.0.25release notes

  • parse_form() now validates chunk_size.

    0.0.24release notes