← Back to issue list

build(deps): bump starlette from 0.38.5 to 0.40.0

View original Github issue

Metadata

Project
snapcraft
Number
#5118
Type
pull request
State
closed
Author
dependabot[bot]
Labels
—
Created
Updated
Closed

Current evaluation

Dependabot's starlette 0.38.5→0.40.0 PR touched no files (0 files changed) and was closed unmerged. The same security fix landed via Renovate PR #5119 (commit 9fa59f7c4, main) and #5120 (commit fceb8c169, hotfix/8.4).

Resolution: closed superseded

Reason: The PR's diff was empty (+0/-0, 0 files changed) so it could not be merged; the maintainers instead merged the equivalent Renovate security bumps #5119 (9fa59f7c4, main) and #5120 (fceb8c169, hotfix/8.4), making this Dependabot PR redundant.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Bumps [starlette](https://github.com/encode/starlette) from 0.38.5 to 0.40.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/encode/starlette/releases">starlette's releases</a>.</em></p> <blockquote> <h2>Version 0.40.0</h2> <p>This release fixes a Denial of service (DoS) via <code>multipart/form-data</code> requests.</p> <p>You can view the full security advisory: <a href="https://github.com/encode/starlette/security/advisories/GHSA-f96h-pmfr-66vw">GHSA-f96h-pmfr-66vw</a></p> <h2>Fixed</h2> <ul> <li>Add <code>max_part_size</code> to <code>MultiPartParser</code> to limit the size of parts in <code>multipart/form-data</code> requests <a href="https://github.com/encode/starlette/commit/fd038f3070c302bff17ef7d173dbb0b007617733">fd038f3</a>.</li> </ul> <h2>Version 0.39.2</h2> <h2>Fixed</h2> <ul> <li>Allow use of <code>request.url_for</code> when only &quot;app&quot; scope is available <a href="https://redirect.github.com/encode/starlette/pull/2672">#2672</a>.</li> <li>Fix internal type hints to support <code>python-multipart==0.0.12</code> <a href="https://redirect.github.com/encode/starlette/pull/2708">#2708</a>.</li> </ul> <hr /> <p><strong>Full Changelog</strong>: <a href="https://github.com/encode/starlette/compare/0.39.1...0.39.2">https://github.com/encode/starlette/compare/0.39.1...0.39.2</a></p> <h2>Version 0.39.1</h2> <h2>Fixed</h2> <ul> <li>Avoid regex re-compilation in <code>responses.py</code> and <code>schemas.py</code> <a href="https://redirect.github.com/encode/starlette/pull/2700">#2700</a>.</li> <li>Improve performance of <code>get_route_path</code> by removing regular expression usage <a href="https://redirect.github.com/encode/starlette/pull/2701">#2701</a>.</li> <li>Consider <code>FileResponse.chunk_size</code> when handling multiple ranges <a href="https://redirect.github.com/encode/starlette/pull/2703">#2703</a>.</li> <li>Use <code>token_hex</code> for generating multipart boundary strings <a href="https://redirect.github.com/encode/starlette/pull/2702">#2702</a>.</li> </ul> <hr /> <p><strong>Full Changelog</strong>: <a href="https://github.com/encode/starlette/compare/0.39.0...0.39.1">https://github.com/encode/starlette/compare/0.39.0...0.39.1</a></p> <h2>Version 0.39.0</h2> <h2>Added</h2> <ul> <li>Add support for HTTP Range to <code>FileResponse</code> <a href="https://redirect.github.com/encode/starlette/pull/2697">#2697</a></li> </ul> <hr /> <p><strong>Full Changelog</strong>: <a href="https://github.com/encode/starlette/compare/0.38.6...0.39.0">https://github.com/encode/starlette/compare/0.38.6...0.39.0</a></p> <h2>Version 0.38.6</h2> <h2>Fixed</h2> <ul> <li>Close unclosed <code>MemoryObjectReceiveStream</code> in <code>TestClient</code> <a href="https://redirect.github.com/encode/starlette/pull/2693">#2693</a>.</li> </ul> <hr /> <p><strong>Full Changelog</strong>: <a href="https://github.com/encode/starlette/compare/0.38.5...0.38.6">https://github.com/encode/starlette/compare/0.38.5...0.38.6</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/encode/starlette/blob/master/docs/release-notes.md">starlette's changelog</a>.</em></p> <blockquote> <h2>0.40.0 (October 15, 2024)</h2> <p>This release fixes a Denial of service (DoS) via <code>multipart/form-data</code> requests.</p> <p>You can view the full security advisory: <a href="https://github.com/encode/starlette/security/advisories/GHSA-f96h-pmfr-66vw">GHSA-f96h-pmfr-66vw</a></p> <h4>Fixed</h4> <ul> <li>Add <code>max_part_size</code> to <code>MultiPartParser</code> to limit the size of parts in <code>multipart/form-data</code> requests <a href="https://github.com/encode/starlette/commit/fd038f3070c302bff17ef7d173dbb0b007617733">fd038f3</a>.</li> </ul> <h2>0.39.2 (September 29, 2024)</h2> <h4>Fixed</h4> <ul> <li>Allow use of <code>request.url_for</code> when only &quot;app&quot; scope is available <a href="https://redirect.github.com/encode/starlette/pull/2672">#2672</a>.</li> <li>Fix internal type hints to support <code>python-multipart==0.0.12</code> <a href="https://redirect.github.com/encode/starlette/pull/2708">#2708</a>.</li> </ul> <h2>0.39.1 (September 25, 2024)</h2> <h4>Fixed</h4> <ul> <li>Avoid regex re-compilation in <code>responses.py</code> and <code>schemas.py</code> <a href="https://redirect.github.com/encode/starlette/pull/2700">#2700</a>.</li> <li>Improve performance of <code>get_route_path</code> by removing regular expression usage <a href="https://redirect.github.com/encode/starlette/pull/2701">#2701</a>.</li> <li>Consider <code>FileResponse.chunk_size</code> when handling multiple ranges <a href="https://redirect.github.com/encode/starlette/pull/2703">#2703</a>.</li> <li>Use <code>token_hex</code> for generating multipart boundary strings <a href="https://redirect.github.com/encode/starlette/pull/2702">#2702</a>.</li> </ul> <h2>0.39.0 (September 23, 2024)</h2> <h4>Added</h4> <ul> <li>Add support for <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests">HTTP Range</a> to <code>FileResponse</code> <a href="https://redirect.github.com/encode/starlette/pull/2697">#2697</a>.</li> </ul> <h2>0.38.6 (September 22, 2024)</h2> <h4>Fixed</h4> <ul> <li>Close unclosed <code>MemoryObjectReceiveStream</code> in <code>TestClient</code> <a href="https://redirect.github.com/encode/starlette/pull/2693">#2693</a>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/encode/starlette/commit/4ded4b7ac517bd301cee69f5c189b1cb48c069b6"><code>4ded4b7</code></a> Version 0.40.0 (<a href="https://redirect.github.com/encode/starlette/issues/2728">#2728</a>)</li> <li><a href="https://github.com/encode/starlette/commit/fd038f3070c302bff17ef7d173dbb0b007617733"><code>fd038f3</code></a> Merge commit from fork</li> <li><a href="https://github.com/encode/starlette/commit/e11684013fe5ca084f5bd4e54830512a4dff9618"><code>e116840</code></a> Bump the python-packages group with 6 updates (<a href="https://redirect.github.com/encode/starlette/issues/2713">#2713</a>)</li> <li><a href="https://github.com/encode/starlette/commit/0b50b9c4abd992a39d6e32148cc6f577ac3b1c44"><code>0b50b9c</code></a> Version 0.39.2 (<a href="https://redirect.github.com/encode/starlette/issues/2710">#2710</a>)</li> <li><a href="https://github.com/encode/starlette/commit/fe46d99d92da17efe1827f96ad29d748aac870d2"><code>fe46d99</code></a> Support <code>request.url_for</code> when only &quot;app&quot; scope is avaialable (<a href="https://redirect.github.com/encode/starlette/issues/2672">#2672</a>)</li> <li><a href="https://github.com/encode/starlette/commit/1a6018e08a994c78f5c169b8535408259af0f249"><code>1a6018e</code></a> Support python-multipart 0.0.12 (<a href="https://redirect.github.com/encode/starlette/issues/2708">#2708</a>)</li> <li><a href="https://github.com/encode/starlette/commit/fa7b382a66cd99e3dc18f3baa44dae5ec68be76b"><code>fa7b382</code></a> Version 0.39.1 (<a href="https://redirect.github.com/encode/starlette/issues/2706">#2706</a>)</li> <li><a href="https://github.com/encode/starlette/commit/075efd0c5c9f5e49a4416f3b4a24e24efab135f8"><code>075efd0</code></a> generate boundary with token_hex (<a href="https://redirect.github.com/encode/starlette/issues/2702">#2702</a>)</li> <li><a href="https://github.com/encode/starlette/commit/b8139f9fe3b1acb34ddbe38dc6472a60b621540e"><code>b8139f9</code></a> Consider <code>FileResponse.chunk_size</code> when handling multiple ranges (<a href="https://redirect.github.com/encode/starlette/issues/2703">#2703</a>)</li> <li><a href="https://github.com/encode/starlette/commit/4fbf766b3eac4146b86175682cec88d266fd8470"><code>4fbf766</code></a> test: add tests in <code>test_requests</code> (<a href="https://redirect.github.com/encode/starlette/issues/2677">#2677</a>)</li> <li>Additional commits viewable in <a href="https://github.com/encode/starlette/compare/0.38.5...0.40.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=starlette&package-manager=pip&previous-version=0.38.5&new-version=0.40.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/canonical/snapcraft/network/alerts). </details>

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Dependabot's starlette 0.38.5→0.40.0 PR touched no files (0 files changed) and was closed unmerged. The same security fix landed via Renovate PR #5119 (commit 9fa59f7c4, main) and #5120 (commit fceb8c169, hotfix/8.4).
stealth/space-bunny-alpha — closed superseded Dependabot's empty Starlette 0.40.0 update was superseded; the security upgrade was merged separately in #5119 for main and #5120 for hotfix/8.4.
stealth/space-bunny-alpha — closed superseded Closed unmerged after approval; the Starlette 0.40.0 security upgrade was applied separately by merged canonical/snapcraft#5119 on main and #5120 on hotfix/8.4.
qwen/qwen3.6-35b-a3b — — Closed after approval to update starlette to 0.40.0, addressing a multipart/form-data DoS vulnerability.
qwen3.6-35b-a3b-mtp-q6 — — Closed without merging. Dependabot dependency update to bump starlette from 0.38.5 to 0.40.0, addressing a multipart/form-data DoS vulnerability. No merge or further action occurred.

Update history

No update history recorded yet.

Related work

  • Superseded By: canonical/snapcraft#5119 (confidence 95%)

    Renovate security PR updating starlette to 0.40.0 on main, merged as commit 9fa59f7c4

  • Superseded By: canonical/snapcraft#5120 (confidence 92%)

    Same starlette 0.40.0 security bump for hotfix/8.4, merged as commit fceb8c169

Related issues

Issue Project State Summary Similarity
#5120 build(deps): update dependency starlette to v0.40.0 [security] (hotfix/8.4) snapcraft merged Renovate security bump of Starlette 0.38.4 -> 0.40.0 (CVE-2024-47874 multipart DoS) merged into hotfix/8.4 as commit fceb8c169; the equivalent main PR #5119 landed as 9fa59f7c4.
89%
#208 build(deps): bump starlette from 0.48.0 to 0.49.1 craft-platforms closed Closed unmerged as redundant after Dependabot lock-file maintenance in #211 made Starlette current.
86%
#350 build(deps): bump starlette imagecraft merged Merged PR #350 as commit 920399b, bumping Starlette from v0.52.1 to v1.2.0 to resolve an OSV advisory; all reported CI checks passed.
84%
#84 build(deps): bump starlette from 0.48.0 to 0.49.1 debcraft merged Merged PR #84 in commit ee56b5f, updating Starlette from 0.48.0 to 0.49.1 to fix the FileResponse Range-header parsing vulnerability.
82%
#1181 build(deps): update dependency starlette to v0.47.2 [security] (hotfix/2.7) craft-parts merged Renovate security bump of Starlette 0.45.3 -> 0.47.2 merged into hotfix/2.7 (approved, +1/-1 in pyproject.toml), fixing CVE-2025-54121 event-loop blocking on large uploads. Main counterpart merged as #1180 (48f28aa7).
82%
#1180 build(deps): update dependency starlette to v0.47.2 [security] (main) craft-parts merged Renovate security bump of starlette 0.45.3 → 0.47.2 merged into main as commit 48f28aa7 (PR #1180), fixing CVE-2025-54121 (event-loop blocking on large multipart uploads).
82%
#5119 build(deps): update dependency starlette to v0.40.0 [security] (main) snapcraft merged Merged in #5119 as 9fa59f7c4, upgrading Starlette 0.38.5 to 0.40.0 to remediate CVE-2024-47874's multipart form-data denial-of-service vulnerability.
81%
#742 build(deps): update deps with freeze-requirements.sh rockcraft merged Merged PR #742 as 5d776281, upgrading Starlette 0.39.2 to 0.41.0 to address the CVE-2024-47874 denial-of-service vulnerability.
78%
#1629 build: bump starlette craft-parts merged Merged PR #1629 as commit 5363f3fd, bumping Starlette to resolve an OSV; remaining python-apt findings were judged false positives.
76%
#357 build(deps): bump cryptography and starlette imagecraft merged Merged PR #357 (commit a868324) bumping cryptography v46.0.7 to v49.0.0 and adding a starlette>=1.3.1 constraint to clear OSV findings; approved with 1 reviewer and most CI checks passing.
75%