Skip to content

chore(deps): bump python-multipart from 0.0.33 to 0.0.34 - #297

Merged
ffroliva merged 1 commit into
mainfrom
dependabot/uv/python-multipart-0.0.34
Nov 24, 2026
Merged

ffroliva merged 1 commit into
mainfrom
dependabot/uv/python-multipart-0.0.34

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Bumps python-multipart from 0.0.33 to 0.0.34.

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.
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
dependabot Bot requested a review from ffroliva as a code owner November 23, 2026 11:58
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Nov 23, 2026
@dependabot
dependabot Bot force-pushed the dependabot/uv/python-multipart-0.0.34 branch 5 times, most recently from 4aa2f70 to d42af66 Compare November 24, 2026 01:20
Bumps [python-multipart](https://github.com/Kludex/python-multipart) from 0.0.33 to 0.0.34.
- [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
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/uv/python-multipart-0.0.34 branch from d42af66 to 400c3d6 Compare November 24, 2026 01:51
@ffroliva
ffroliva merged commit 35f5bf5 into main Nov 24, 2026
48 checks passed
@dependabot
dependabot Bot deleted the dependabot/uv/python-multipart-0.0.34 branch November 24, 2026 10:37
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:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant