-
Notifications
You must be signed in to change notification settings - Fork 23
chore(deps): Update dependency starlette to v0.47.2 [SECURITY] #466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate-bot
wants to merge
1
commit into
GoogleCloudPlatform:main
Choose a base branch
from
renovate-bot:renovate/pypi-starlette-vulnerability
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
chore(deps): Update dependency starlette to v0.47.2 [SECURITY] #466
renovate-bot
wants to merge
1
commit into
GoogleCloudPlatform:main
from
renovate-bot:renovate/pypi-starlette-vulnerability
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/gcbrun |
2bff933
to
0e28230
Compare
/gcbrun |
0e28230
to
521d1f2
Compare
/gcbrun |
521d1f2
to
efd765f
Compare
/gcbrun |
efd765f
to
31bbacd
Compare
/gcbrun |
31bbacd
to
f8b265e
Compare
/gcbrun |
f8b265e
to
0f8de45
Compare
/gcbrun |
0f8de45
to
84459f0
Compare
/gcbrun |
1 similar comment
/gcbrun |
84459f0
to
3d10344
Compare
/gcbrun |
3d10344
to
c31852b
Compare
/gcbrun |
c31852b
to
4c364d9
Compare
/gcbrun |
4c364d9
to
c2221a4
Compare
/gcbrun |
c2221a4
to
4c4024a
Compare
/gcbrun |
4c4024a
to
f1f02be
Compare
/gcbrun |
f1f02be
to
d068e8a
Compare
/gcbrun |
d068e8a
to
5d0998c
Compare
/gcbrun |
5d0998c
to
7b20fe0
Compare
/gcbrun |
7b20fe0
to
a85d68c
Compare
/gcbrun |
a85d68c
to
47820f5
Compare
/gcbrun |
47820f5
to
506d6e8
Compare
/gcbrun |
506d6e8
to
c6145de
Compare
/gcbrun |
c6145de
to
b6304de
Compare
/gcbrun |
b6304de
to
4865d1e
Compare
/gcbrun |
4865d1e
to
95e0a2e
Compare
/gcbrun |
95e0a2e
to
b18296b
Compare
/gcbrun |
b18296b
to
ed7d706
Compare
/gcbrun |
ed7d706
to
87e5053
Compare
/gcbrun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.41.2
->==0.47.2
GitHub Vulnerability Alerts
CVE-2025-54121
Summary
When parsing a multi-part form with large files (greater than the default max spool size)
starlette
will block the main thread to roll the file over to disk. This blocks the event thread which means we can't accept new connections.Details
Please see this discussion for details: https://github.com/encode/starlette/discussions/2927#discussioncomment-13721403. In summary the following UploadFile code (copied from here) has a minor bug. Instead of just checking for
self._in_memory
we should also check if the additional bytes will cause a rollover.I have already created a PR which fixes the problem: https://github.com/encode/starlette/pull/2962
PoC
See the discussion here for steps on how to reproduce.
Impact
To be honest, very low and not many users will be impacted. Parsing large forms is already CPU intensive so the additional IO block doesn't slow down
starlette
that much on systems with modern HDDs/SSDs. If someone is running on tape they might see a greater impact.Release Notes
encode/starlette (starlette)
v0.47.2
Compare Source
Fixed
UploadFile
check for future rollover #2962.New Contributors
Full Changelog: Kludex/starlette@0.47.1...0.47.2
v0.47.1
: Version 0.47.1Compare Source
Fixed
Self
inTestClient.__enter__
#2951Full Changelog: Kludex/starlette@0.47.0...0.47.1
v0.47.0
: Version 0.47.0Compare Source
Added
pathsend
extension #2671.partitioned
attribute toResponse.set_cookie
#2501.Changed
methods
parameter type fromlist[str]
toCollection[str]
#2903.import typing
byfrom typing import ...
in the whole codebase #2867.Fixed
ExceptionMiddleware.http_exception
as async to prevent thread creation #2922.New Contributors
Full Changelog: Kludex/starlette@0.46.2...0.47.0
v0.46.2
: Version 0.46.2Compare Source
What's Changed
TemplateResponse
by @alex-oleshkevich in https://github.com/encode/starlette/pull/2909BaseHTTPMiddleware
by @ramannanda9 in https://github.com/encode/starlette/pull/2911New Contributors
Full Changelog: Kludex/starlette@0.46.1...0.46.2
v0.46.1
: Version 0.46.1Compare Source
Fixed
follow_symlinks=True
#2896.Full Changelog: Kludex/starlette@0.46.0...0.46.1
v0.46.0
: Version 0.46.0Compare Source
Added
GZipMiddleware
: Make sureVary
header is always added if a response can be compressed #2865.Fixed
GZipMiddleware
: Don't compress on server sent events #2871.Changed
MultiPartParser
: Renamemax_file_size
tospool_max_size
#2780.Deprecated
TestClient(timeout=...)
#2840.New Contributors
Full Changelog: Kludex/starlette@0.45.3...0.46.0
v0.45.3
: Version 0.45.3Compare Source
Fixed
lookup_path
on commonpath comparison by @Kludex in https://github.com/encode/starlette/pull/2851Full Changelog: Kludex/starlette@0.45.2...0.45.3
v0.45.2
: Version 0.45.2Compare Source
Fixed
create_memory_object_stream
compatible with old anyio versions once again, and bump anyio minimum version to 3.6.2 by @graingert in #2833.Full Changelog: Kludex/starlette@0.45.1...0.45.2
v0.45.1
: Version 0.45.1Compare Source
Fixed
MemoryObjectReceiveStream
upon exception inBaseHTTPMiddleware
children by @Kludex in https://github.com/encode/starlette/pull/2813Refactor
Full Changelog: Kludex/starlette@0.45.0...0.45.1
v0.45.0
: Version 0.45.0Compare Source
Removed
ExceptionMiddleware
import proxy fromstarlette.exceptions
module by @Kludex in https://github.com/encode/starlette/pull/2826WS_1004_NO_STATUS_RCVD
andWS_1005_ABNORMAL_CLOSURE
by @Kludex in https://github.com/encode/starlette/pull/2827Full Changelog: Kludex/starlette@0.44.0...0.45.0
v0.44.0
: Version 0.44.0Compare Source
Added
max_part_size
parameter toRequest.form()
by @iudeen in https://github.com/encode/starlette/pull/2815client
parameter toTestClient
by @iudeen in https://github.com/encode/starlette/pull/2810New Contributors
Full Changelog: Kludex/starlette@0.43.0...0.44.0
v0.43.0
: Version 0.43.0Compare Source
Removed
allow_redirects
argument fromTestClient
#2808.Added
New Contributors
Full Changelog: Kludex/starlette@0.42.0...0.43.0
v0.42.0
: Version 0.42.0Compare Source
Added
ClientDisconnect
onStreamingResponse
#2732.Fixed
StaticFiles
whenfollow_symlinks=True
#2711.python-multipart
version to0.0.18
0ba8395.httpx
version to0.27.0
#2773.New Contributors
Full Changelog: Kludex/starlette@0.41.3...0.42.0
v0.41.3
: Version 0.41.3Compare Source
Fixed
scope[raw_path]
on theTestClient
#2716.dict
byMapping
onHTTPException.headers
#2749.Full Changelog: Kludex/starlette@0.41.2...0.41.3
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.