[Aikido] Fix 1 critical issue in anyio and 41 other issues - #106
Open
aikido-autofix[bot] wants to merge 1 commit into
Open
[Aikido] Fix 1 critical issue in anyio and 41 other issues#106aikido-autofix[bot] wants to merge 1 commit into
aikido-autofix[bot] wants to merge 1 commit into
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
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.
Upgrade dependencies to fix critical vulnerabilities: Host header validation bypass in path-based security checks, TLS certificate validation bypass via IDNA encoding mismatch, and null byte/control character injection in HTTP headers.
✅ 42 CVEs resolved by this upgrade, including 3 critical 🚨 CVEs
This PR will resolve the following CVEs:
request.url.pathto diverge from the actual requested path and potentially bypassing path-based security checks or authorization middleware.Hostheader was not validated before reconstructingrequest.url, allowing malformed headers to causerequest.url.pathto differ from the actual requested path. This could bypass security restrictions in middleware and endpoints that rely onrequest.urlinstead of the raw path.cookiesparameter are sent after cross-origin redirects, potentially leaking sensitive data to attackers controlling redirects. This vulnerability allows information disclosure through cookie exposure across different origins.set_key()andunset_key()functions during.envfile rewriting. This vulnerability allows arbitrary file write/modification through a crafted symlink when a cross-device rename fallback is triggered.NestedSecretsSettingsSourcewithsecrets_nested_subdir=Truefollows symbolic links outside the configured secrets directory, enabling local file read and bypassing thesecrets_dir_max_sizeprotection when an attacker can place symlinks in the secrets directory.🤖 Remediation details
Patch transitive and direct Python dependencies to remediate security vulnerabilities in
starlette,anyio,aiohttp,mako,urllib3,yarl,python-dotenv,pydantic-settings,idna, andgreenletShort summary
This PR remediates security vulnerabilities across ten Python packages:
starlette,anyio,aiohttp,mako,urllib3,yarl,python-dotenv,pydantic-settings,idna, andgreenlet. One direct dependency spec in the rootpyproject.tomlwas updated (fastapi, to unblock thestarletteupgrade); all other changes are lockfile-only resolutions viauv lock --upgrade-package. The resolved versions are recorded inuv.lock.starlette
starletteis a transitive dependency pulled in byfastapi. The previously lockedfastapi 0.128.0declaredstarlette<0.51.0, which prevented upgrading past0.50.0. Thefastapilower-bound spec inpyproject.tomlwas raised from>=0.112.0to>=0.133.0, allowing the resolver to selectfastapi 0.141.1, which in turn allowsstarlette 1.6.0— satisfying the ≥1.3.1 patched requirement.anyio
anyiois a transitive dependency ofstarlette(andhttpx). All parent packages already declared ranges that permitanyio 4.14.2, so no manifest edit was required; the lockfile was refreshed viauv lock --upgrade-package anyioto resolve4.14.2.aiohttp
aiohttpis a transitive dependency ofaiobotocore(pulled in byaioboto3). The parent's declared range already permitted3.14.3, so the lockfile was refreshed viauv lock --upgrade-package aiohttpto resolve3.14.3.mako
makois a transitive dependency ofalembic. The parent's declared range already permitted1.3.12, so the lockfile was refreshed viauv lock --upgrade-package makoto resolve1.4.1.urllib3
urllib3is a transitive dependency ofbotocore(viaboto3/aiobotocore) andrequests(viaazure-core). All parent declared ranges already permitted2.7.0, so the lockfile was refreshed viauv lock --upgrade-package urllib3to resolve2.7.0.yarl
yarlis a transitive dependency ofaiohttp. The parent's declared range already permitted1.24.5, so the lockfile was refreshed viauv lock --upgrade-package yarlto resolve1.24.5.python-dotenv
python-dotenvis a transitive dependency ofpydantic-settings. The parent's declared range already permitted1.2.2, so the lockfile was refreshed viauv lock --upgrade-package python-dotenvto resolve1.2.3.pydantic-settings
pydantic-settingsis a direct dependency declared as>=2.5.2,<3inpyproject.toml. That range already permits2.14.2; the lockfile was refreshed viauv lock --upgrade-package pydantic-settingsto resolve2.15.0.idna
idnais a transitive dependency ofanyio,yarl,httpx, andrequests. All parent declared ranges already permitted3.15, so the lockfile was refreshed viauv lock --upgrade-package idnato resolve3.19.greenlet
greenletis a transitive dependency ofsqlalchemy(pulled in byalembicandsqlmodel). The parent's declared range already permitted3.5.4, so the lockfile was refreshed viauv lock --upgrade-package greenletto resolve3.5.5.Version changes
starlettefastapianyioaiohttpmakourllib3yarlpython-dotenvpydantic-settingsidnagreenlet