Skip to content

chore(deps): update python-multipart requirement from >=0.0.33 to >=0.0.34 - #24

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/python-multipart-gte-0.0.34
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/python-multipart-gte-0.0.34

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 22, 2026

Copy link
Copy Markdown

Updates the requirements on python-multipart to permit the latest version.

Release notes

Sourced from python-multipart's releases.

Version 0.0.34

⚡ Faster form parsing

This release reduces parser overhead for forms with many fields and corrects multipart boundary and header handling. Parsers created without callbacks also no longer share callback registrations.

pip install python-multipart==0.0.34
  • Faster query-string parsing (#372). The parser reuses separator positions and starts the next field directly when its data is already available.
  • Less overhead for multipart forms (#370, #373). Complete CRLF sequences are consumed without stepping through each intermediate parser state, and mark-helper functions are no longer created on each write.

🧩 More predictable multipart handling

  • Padded boundaries no longer merge adjacent parts (#363). Spaces and tabs after delimiters between parts are recognized as transport padding. Malformed padding now raises MultipartParseError instead of being returned as part data. Padded opening boundaries remain unsupported.
  • Non-ASCII parameter bytes are preserved (#364). parse_options_header trims only spaces and tabs, rather than all Unicode whitespace. This avoids changing parameter values such as names ending in the UTF-8 bytes for à.
  • Whitespace around part header values is ignored by FormParser (#366). For example, Content-Transfer-Encoding: base64 is recognized and decoded despite the trailing space. Low-level MultipartParser callbacks still receive the raw header value bytes.

🛡️ Isolated callbacks and clearer security scope

  • Callback registrations stay with their parser (#362). Parsers constructed without callbacks now get separate dictionaries, so calling set_callback() on one no longer changes another parser's handlers.
  • A documented threat model (#358, #359, #367). The threat model defines trust boundaries, application responsibilities, and vulnerability scope. Bugs in deprecated Content-Transfer-Encoding decoding are handled as public bug reports rather than security reports.

💜 Thank you

Thanks to @​deadstrobe5 and @​g4lb for the parser performance proposals that informed this release.

Full changelog: 0.0.33...0.0.34

Changelog

Sourced from python-multipart's changelog.

0.0.34 (2026-11-16)

  • Reduce multipart parser overhead by removing mark-helper closures and consuming buffered line endings #370, #373.
  • Speed up query-string parsing by reusing separators and starting fields directly #372.
  • Keep default callback dictionaries separate between parser instances #362.
  • Recognize transport padding after between-part boundaries and reject malformed padding #363.
  • Only trim spaces and tabs in parse_options_header, preserving other whitespace in media types and parameters #364.
  • Strip spaces and tabs around part header values in FormParser #366.
  • Add a threat model and clarify vulnerability scope #358, #359.

0.0.33 (2026-10-31)

  • Drop Python 3.10 support #329.
  • Add Python 3.15 support #350.
  • Add opt-in field-count and field-size limits for URL-encoded forms in FormParser #333.
  • Normalize the content type returned by parse_options_header when the header has parameters #287.
  • Finalize Content-Transfer-Encoding decoding before invoking field and file callbacks #336.
  • Keep only the incomplete escape when quoted-printable data is split across writes #355.
  • Handle nameless uploads when UPLOAD_KEEP_FILENAME or UPLOAD_KEEP_EXTENSIONS is set #343.
  • Accept a str UPLOAD_DIR when UPLOAD_KEEP_FILENAME is set #335.
  • Speed up parser state lookups #330.
  • Speed up opening boundary matching #328.
  • Speed up querystring callback dispatch #316.

0.0.32 (2026-06-04)

  • Speed up partial-boundary scanning for CR/LF-dense part data #300.

0.0.31 (2026-06-04)

  • Speed up multipart header parsing and callback dispatch #295.
  • Bound header field name size before validating #296.
  • Validate Content-Length is non-negative in parse_form #297.

0.0.30 (2026-05-31)

  • Parse application/x-www-form-urlencoded bodies per the WHATWG URL standard, treating only & as a field separator #290.
  • Ignore RFC 2231/5987 extended parameters (name*, filename*) in parse_options_header, keeping the plain parameter authoritative per RFC 7578 §4.2 #291.

0.0.29 (2026-05-17)

  • Handle malformed RFC 2231 continuations in parse_options_header #270.

0.0.28 (2026-05-10)

  • Speed up partial-boundary tail scan via bytes.find #281.
  • Cap multipart boundary length at 256 bytes #282.

0.0.27 (2026-04-27)

... (truncated)

Commits
  • c511ff0 Exclude Content-Transfer-Encoding decoding from the threat model (#367)
  • 783f37a Bump version to 0.0.34 (#374)
  • 8ee1f50 Skip buffered multipart line endings (#373)
  • 55ba6f4 Reuse query-string separators and start fields directly (#372)
  • 89a8013 Inline multipart mark operations (#370)
  • 9bd038e Strip whitespace around part header values in FormParser (#366)
  • 6cebfd8 Only trim spaces and tabs around header parameters (#364)
  • 70297b7 Bump the python-packages group with 9 updates (#361)
  • 17334ce Handle transport padding after multipart boundaries (#363)
  • 66e4fa4 Create a new default callbacks dict for each parser (#362)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [python-multipart](https://github.com/Kludex/python-multipart) to permit the latest version.
- [Release notes](https://github.com/Kludex/python-multipart/releases)
- [Changelog](https://github.com/Kludex/python-multipart/blob/main/CHANGELOG.md)
- [Commits](Kludex/python-multipart@0.0.33...0.0.34)

---
updated-dependencies:
- dependency-name: python-multipart
  dependency-version: 0.0.34
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants