Skip to content

fix(deps): bump fastapi to 0.163.2 in uv.lock - #36

Merged
glebedel merged 1 commit into
mainfrom
security-autopilot/ak-62795375-stackone-adk-plugin-fastapi
Dec 3, 2026
Merged

glebedel merged 1 commit into
mainfrom
security-autopilot/ak-62795375-stackone-adk-plugin-fastapi

Conversation

@s2d2-agent

@s2d2-agent s2d2-agent Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Why

Aikido flags fastapi 0.141.1 in uv.lock (high, Aikido group 62795375, AIKIDO-2026-463717 / GHSA-f56c-v883-vx8r). With many query, header or form parameters, FastAPI's field extraction spends quadratic CPU and can stall the event loop. 0.163.2 fixes it. Tracked in SEC-403.

Zero Wire: https://radar.cloudflare.com/zero-wire/cves/AIKIDO-2026-463717 (the advisory has no CVE id yet, so there is no CISA SSVC record).

Reachability is low. This repo is a library published as stackone-adk. fastapi only arrives as a dependency of google-adk, and nothing in stackone_adk/, tests/ or examples/ imports it. pyproject.toml does not pin fastapi, so people who install the wheel already resolve a patched fastapi. The lock only drives CI and local development.

What changed

  • uv.lock: fastapi 0.141.1 to 0.163.2 (uv lock -P fastapi==0.163.2). This is the only file changed, 5 lines added and 3 removed.
  • fastapi 0.163.2 now lists anyio>=4.1.0 and opentelemetry-api>=1.44.0 as dependencies. The lock already has both (anyio 4.15.1, opentelemetry-api 1.45.2), and both fit google-adk 2.14.1's caps (fastapi>=0.133,<1, opentelemetry-api<=1.45.2, starlette>=1.3.1,<2). No other package moved.
  • No pyproject floor, on purpose. The Codex security pass pointed out that the published wheel still lets a consumer resolve fastapi 0.141.1 alongside google-adk 2.14.1. That is true, but a fastapi>=0.163.2 floor cannot be satisfied with google-adk 1.31.1, 2.7.0 or 2.12.0 (uv pip compile reports no solution, because fastapi 0.163.2 needs opentelemetry-api>=1.44 and those google-adk versions cap it lower). The floor only resolves from google-adk 2.13.0. Adding it would quietly raise this library's supported google-adk range from >=1.31.1 to >=2.13, which is a compatibility decision for a release, not part of a lockfile fix. It is listed as a follow-up on SEC-403.

Proof

Check main (f6049ae) this branch
fastapi in uv.lock 0.141.1 0.163.2
uv sync --extra dev --locked ok ok on 3.11, 3.12, 3.13
ruff pass pass
mypy stackone_adk no issues no issues on 3.11, 3.12, 3.13
pytest 20 passed 20 passed on 3.11, 3.12, 3.13

I also ran from google.adk.cli.fast_api import get_fast_api_app and a FastAPI TestClient request on 0.163.2. Both work.

No runtime change in the plugin's own code, so there is no demo.

Risk and rollback

Low. Only the dev and CI environment changes. To roll back, revert this commit.

What we will watch after merge

There is no deployed service to watch. After merge, Aikido should rescan the repo and drop stackone-adk-plugin from group 62795375. CI on main should stay green.

Opened by Security Autopilot (s2d2) for Guillaume Lebedel from Aikido issue 62795375, under the automatic Aikido fix approval of 2026-11-01.

🤖 Generated with Claude Code

Review gates and proof

Recorded by s2d2 on 24bb2c0. Kind of change: code.

gate result
forge not run
security_scan ran
codex_security ran
security_review ran
code_review ran
eng_review ran
demo not run
local_stack ran

Clears Aikido group 62795375 (AIKIDO-2026-463717, GHSA-f56c-v883-vx8r).
fastapi is transitive through google-adk; lockfile only. SEC-403.

Co-authored-by: Guillaume Lebedel <guillaume@stackone.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Lockfile-only bump of fastapi 0.141.1 to 0.163.2 fixes a high-severity DoS advisory; fastapi is unpinned and unused by the library, so only CI/dev is affected and the change is clearly bounded.

View guided diff | Turn on auto-fix | Re-trigger cubic

@glebedel
glebedel merged commit 181ab5a into main Dec 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants