Update dependency python-multipart to ^0.0.18 [SECURITY] #4148
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.0.9
->^0.0.18
GitHub Vulnerability Alerts
CVE-2024-53981
Summary
When parsing form data,
python-multipart
skips line breaks (CR\r
or LF\n
) in front of the first boundary and any tailing bytes after the last boundary. This happens one byte at a time and emits a log event each time, which may cause excessive logging for certain inputs.An attacker could abuse this by sending a malicious request with lots of data before the first or after the last boundary, causing high CPU load and stalling the processing thread for a significant amount of time. In case of ASGI application, this could stall the event loop and prevent other requests from being processed, resulting in a denial of service (DoS).
Impact
Applications that use
python-multipart
to parse form data (or use frameworks that do so) are affected.Original Report
This security issue was reported by:
python-multipart
maintainer on October 3 by @mnqaziRelease Notes
Kludex/python-multipart (python-multipart)
v0.0.18
Compare Source
MultipartParser
#189.v0.0.17
Compare Source
v0.0.16
Compare Source
multipart
package #177.v0.0.15
Compare Source
FutureWarning
toPendingDeprecationWarning
#174.v0.0.14
Compare Source
multipart
module (#168).v0.0.13
Compare Source
python_multipart
#166.v0.0.12
Compare Source
v0.0.11
Compare Source
v0.0.10
Compare Source
on_header_begin
#103.FormParser
#104.OnFileCallback
type #106.File
#111.Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.