Repository navigation
chore(plugins/omi-linear+omi-hive): remediate Dependabot vulns (#7327) - #7393
Conversation
Minimal bumps of the 5 Dependabot-flagged pins (31 alerts): - python-dotenv 1.0.1 -> 1.2.2 - requests 2.31.0 -> 2.34.2 - Jinja2 3.1.4 -> 3.1.6 - python-multipart 0.0.9 -> 0.0.29 - aiohttp 3.9.5 -> 3.13.5 Unflagged pins (fastapi/uvicorn/pydantic/redis) kept at exact original.
Minimal bumps of the 5 Dependabot-flagged pins (31 alerts): - python-dotenv 1.0.1 -> 1.2.2 - requests 2.31.0 -> 2.34.2 - Jinja2 3.1.4 -> 3.1.6 - python-multipart 0.0.9 -> 0.0.29 - aiohttp 3.9.5 -> 3.13.5 Unflagged pins (fastapi/uvicorn/pydantic/redis) kept at exact original.
Greptile SummaryThis PR remediates five Dependabot-flagged dependency vulnerabilities (
Confidence Score: 3/5The security-only bumps are correct, but the omi-hive-app pairing of old fastapi with the new python-multipart will silently break form data handling at runtime — merging as-is would regress the /settings/api-key endpoint. The omi-hive-app actively calls plugins/omi-hive-app/requirements.txt — the fastapi pin needs to be bumped alongside python-multipart to restore runtime compatibility for form-data handling. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[PR #7393: Dependabot CVE Remediation] --> B[omi-hive-app/requirements.txt]
A --> C[omi-linear-app/requirements.txt]
B --> G[python-multipart 0.0.9 → 0.0.29\nCVE-2024-53981]
B --> I[fastapi==0.111.1 KEPT]
G -->|Runtime dep| J{omi-hive-app uses Form}
I -->|Fixed in 0.115.4| K[FastAPI multipart import fix]
J --> L[POST /settings/api-key\nuses Form param]
K --> M[fastapi 0.111.1 uses OLD import path]
L --> M
M --> N[⚠️ ImportError at runtime\nwhen Form endpoint is hit]
C --> G2[python-multipart 0.0.9 → 0.0.29]
G2 --> O[omi-linear-app has NO Form endpoints]
O --> P[✅ Safe - no runtime impact]
Reviews (1): Last reviewed commit: "chore(plugins/omi-hive-app): remediate D..." | Re-trigger Greptile |
| python-multipart==0.0.9 | ||
| aiohttp==3.9.5 | ||
| Jinja2==3.1.6 | ||
| python-multipart==0.0.29 |
There was a problem hiding this comment.
Form endpoint may break at runtime with this dependency pair
fastapi==0.111.1 predates the fix applied in FastAPI 0.115.4 (PR #12627: "Update logic to import and check python-multipart for compatibility with newer version"). python-multipart changed its internal namespace/import structure around version 0.0.20, and fastapi==0.111.1 still uses the old import path. Because omi-hive-app/main.py calls Form(...) on the POST /settings/api-key endpoint, that endpoint will fail at runtime with an ImportError when python-multipart 0.0.29 is installed — pip install --dry-run does not catch this since it only validates version constraints, not runtime import paths.
The repo's shared plugins/requirements.txt (from PR #7385) pairs python-multipart==0.0.29 with fastapi==0.121.0, which carries the compatibility fix. The same pairing is needed here — bumping fastapi to >=0.115.4 (or matching the shared pin of 0.121.0) would resolve this without touching the security-relevant python-multipart bump.
There was a problem hiding this comment.
P1 empirically refuted — false positive (conflates a non-fatal deprecation warning with a hard ImportError).
I reproduced the exact scenario in a clean venv with a real Form(...) POST (not pip --dry-run — an actual request through TestClient):
| fastapi | python-multipart | endpoint | result |
|---|---|---|---|
| 0.111.1 | 0.0.9 (original) | api_key: str = Form(...) |
200 {"got":"secret123"} |
| 0.111.1 | 0.0.29 (this PR — omi-hive case) | Form(...) |
200 {"got":"secret123"} |
| 0.111.1 | 0.0.29 | await request.form() |
200 {"keys":["api_key","x"]} |
| 0.104.1 | 0.0.29 | Form(...) |
200 (covers the composio #7395 case too) |
POST /settings/api-key does not raise ImportError — it returns 200 and parses the form correctly. The only observable effect with python-multipart 0.0.29 is a non-fatal PendingDeprecationWarning: Please use 'import python_multipart' instead. — a log-only warning; FastAPI 0.111.1 already imports python-multipart through a compatible path and form handling works. FastAPI 0.115.4 / PR #12627 silences that warning; it is not the difference between working and ImportError here.
Conclusion: no runtime regression on omi-hive-app (or the analogous omi-shipbob/google-calendar request.form() and composio Form() paths, which I verified the same way). Keeping fastapi==0.111.1 is correct under the minimal-bump policy — bumping fastapi 0.111→0.115/0.121 would be the larger, riskier change (pulls a new starlette major + transitive churn) and is unnecessary to keep /settings/api-key working. Declining the fastapi bump; the python-multipart==0.0.29 security bump stands.
Part of #7327. Per-plugin
requirements.txtremediation — group 1 of the plugin batch.These two plugin services have byte-identical dependency sets, so they're remediated together (one commit per file).
Minimal bumps (only the Dependabot-flagged pins)
Patched versions match those already merged & review-passed in #7385 (
plugins/requirements.txt), for consistency.Unflagged pins kept at exact original (
fastapi==0.111.1,uvicorn==0.30.3,pydantic==2.8.2,redis==5.0.1) — minimal-bump policy, no unrelated sweep.Validation
pip install --dry-run).pip-auditof the bumped pins → clean.Documented residual (pre-existing, transitive, NOT introduced by this PR)
pip-auditreportsstarlette 0.37.2(CVE-2024-47874, CVE-2025-54121), pulled transitively by the unchangedfastapi==0.111.1. It is not a Dependabot alert on these manifests (requirements.txt doesn't pin starlette) and is not regressed by this change. Clearing it requires bumpingfastapi(out of the flagged set). Optional follow-up if the manager wants it in scope:fastapi==0.111.1 → >=0.115pulls patched starlette ≥0.41.Alerts cleared
~62 (31 omi-linear-app + 31 omi-hive-app).