-
Notifications
You must be signed in to change notification settings - Fork 4
chore(deps): update dependency fastapi to v0.135.1 #28
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| fastapi==0.135.0 | ||
| fastapi==0.135.1 | ||
| fastapi-utils==0.8.0 | ||
| requests==2.32.5 | ||
| requests-oauthlib ==2.0.0 | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -15,7 +15,7 @@ packages = find: | |||||||||||||||||||
| python_requires = >=3.6 | ||||||||||||||||||||
| install_requires = | ||||||||||||||||||||
| uvicorn[standard]==0.41.0 | ||||||||||||||||||||
| fastapi==0.135.0 | ||||||||||||||||||||
| fastapi==0.135.1 | ||||||||||||||||||||
|
Comment on lines
15
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π§© Analysis chainπ Web query:
π‘ Result: FastAPI 0.135.1 on PyPI declares Requires: Python >= 3.10. [1] Align
Proposed fix-python_requires = >=3.6
+python_requires = >=3.10
install_requires =
uvicorn[standard]==0.41.0
fastapi==0.135.1π Committable suggestion
Suggested change
π€ Prompt for AI Agents |
||||||||||||||||||||
| fastapi-utils==0.8.0 | ||||||||||||||||||||
| requests==2.32.5 | ||||||||||||||||||||
| requests-oauthlib ==2.0.0 | ||||||||||||||||||||
|
|
||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
π Script executed:
Repository: RedHatInsights/ccx-upgrades-data-eng
Length of output: 1628
π Web query:
urllib3 1.26.20 CVE vulnerabilitiesπ‘ Result:
urllib3==1.26.20is affected by these known CVEs (because it falls within the listed vulnerable version ranges):PoolManager(retries=...)(can undermine SSRF/redirect protections)Content-Encodingdecompression steps β resource exhaustion (DoS)Notes:
urllib3>=2.6.3to address the redirect + decompression issues above. [5]Sources: GitLab advisory index for urllib3 (shows the CVE set, including 2024-37891/2025/2026 items) [1], and the individual advisories/records for each CVE [2][3][4][5].
References:
[1] https://advisories.gitlab.com/pkg/pypi/urllib3/
[2] https://advisories.gitlab.com/pkg/pypi/urllib3/CVE-2025-50181/
[3] https://advisories.gitlab.com/pkg/pypi/urllib3/CVE-2025-66418/
[4] https://ubuntu.com/security/CVE-2025-66471
[5] https://opencve.ameos.net/cve/CVE-2026-21441
π Script executed:
Repository: RedHatInsights/ccx-upgrades-data-eng
Length of output: 2141
π Web query:
requests 2.32.5 urllib3 compatibilityπ‘ Result:
requests==2.32.5declares a dependency of:urllib3>=1.21.1,<3β so it is compatible with bothurllib3 1.xandurllib3 2.x(but noturllib3 3.x).[1]Requests added explicit support for
urllib3 2.0starting in Requests2.30.0, so2.32.5is in the βurllib3 2.x supportedβ line. [2]Practical pinning examples
requests==2.32.5(lets pip pickurllib3<3)requests==2.32.5 urllib3>=2,<3requests==2.32.5 urllib3<2Sources: [1] [2]
Add explicit urllib3 constraint to block vulnerable versions; current proposal requires correction.
urllib3 1.26.20 is vulnerable to 4 CVEs (CVE-2025-50181, CVE-2025-66418, CVE-2025-66471, CVE-2026-21441). The minimum safe version is 2.6.3, not 2.2.2 as originally proposed. Add the constraint to both requirements.txt and setup.cfg (they are currently out of sync).
Corrected fix
fastapi==0.135.1 +urllib3>=2.6.3,<3 fastapi-utils==0.8.0 requests==2.32.5Also update setup.cfg install_requires:
requests==2.32.5 requests-oauthlib ==2.0.0 + urllib3>=2.6.3,<3 prometheus_fastapi_instrumentator==7.1.0π§° Tools
πͺ OSV Scanner (2.3.3)
[HIGH] 1-1: urllib3 1.26.20: urllib3 streaming API improperly handles highly compressed data
(GHSA-2xpw-w6gg-jr37)
[HIGH] 1-1: urllib3 1.26.20: Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API)
(GHSA-38jv-5279-wg99)
[HIGH] 1-1: urllib3 1.26.20: urllib3 allows an unbounded number of links in the decompression chain
(GHSA-gm62-xv2j-4w53)
[HIGH] 1-1: urllib3 1.26.20: urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation
(GHSA-pq67-6m6q-mj2v)
π€ Prompt for AI Agents