Skip to content

chore(plugins/omi-linear+omi-hive): remediate Dependabot vulns (#7327) - #7393

Merged
mdmohsin7 merged 2 commits into
mainfrom
rex/plugins-linear-hive-deps
May 19, 2026
Merged

mdmohsin7 merged 2 commits into
mainfrom
rex/plugins-linear-hive-deps

Conversation

@mdmohsin7

Copy link
Copy Markdown
Member

Part of #7327. Per-plugin requirements.txt remediation — 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)

package from to why
python-dotenv 1.0.1 1.2.2 flagged
requests 2.31.0 2.34.2 CVE-2024-35195 / CVE-2024-47081 (netrc leak)
Jinja2 3.1.4 3.1.6 CVE-2024-56326 / CVE-2025-27516
python-multipart 0.0.9 0.0.29 CVE-2024-53981 (DoS)
aiohttp 3.9.5 3.13.5 20 alerts (multiple CVEs)

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

  • Dependency set resolves cleanly (pip install --dry-run).
  • pip-audit of the bumped pins → clean.

Documented residual (pre-existing, transitive, NOT introduced by this PR)

pip-audit reports starlette 0.37.2 (CVE-2024-47874, CVE-2025-54121), pulled transitively by the unchanged fastapi==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 bumping fastapi (out of the flagged set). Optional follow-up if the manager wants it in scope: fastapi==0.111.1 → >=0.115 pulls patched starlette ≥0.41.

Alerts cleared

~62 (31 omi-linear-app + 31 omi-hive-app).

mdmohsin7 added 2 commits May 19, 2026 17:08
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.
@mdmohsin7
mdmohsin7 marked this pull request as ready for review May 19, 2026 17:55
@greptile-apps

greptile-apps Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR remediates five Dependabot-flagged dependency vulnerabilities (python-dotenv, requests, Jinja2, python-multipart, aiohttp) across the omi-hive-app and omi-linear-app plugin requirements.txt files, adopting the same patched pins already merged in PR #7385 for the shared plugins/requirements.txt.

  • The CVE-flagged package bumps are correct and consistent with the shared lockfile; four unflagged pins (fastapi, uvicorn, pydantic, redis) are intentionally held at their original versions per the minimal-bump policy.
  • omi-hive-app uses FastAPI's Form(...) parameter on its POST /settings/api-key endpoint. FastAPI 0.111.1 (the retained, unflagged pin) uses the old python-multipart import path, which was only fixed in FastAPI 0.115.4 — pairing it with python-multipart==0.0.29 creates a runtime incompatibility that pip install --dry-run will not catch. The shared plugins/requirements.txt correctly pairs python-multipart==0.0.29 with fastapi==0.121.0; omi-hive-app needs the same treatment.
  • The residual starlette==0.37.2 transitive CVEs (pulled by the unchanged fastapi==0.111.1) are acknowledged in the PR description as pre-existing and out of scope for this batch.

Confidence Score: 3/5

The 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 Form(...) in its OAuth/API-key endpoint. FastAPI 0.115.4 introduced a targeted fix for exactly the import-path change that python-multipart underwent around version 0.0.20. Keeping fastapi==0.111.1 while bumping python-multipart to 0.0.29 means every POST to /settings/api-key will fail with an ImportError in production — a regression that the reported pip install --dry-run validation step does not exercise. omi-linear-app is unaffected because it has no Form()-based endpoints.

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

Filename Overview
plugins/omi-hive-app/requirements.txt Five CVE-flagged packages bumped correctly; however, the retained fastapi==0.111.1 is incompatible at runtime with python-multipart==0.0.29 because FastAPI only fixed its multipart import logic in 0.115.4 — this app actively uses Form(...) and will fail when that endpoint is hit.
plugins/omi-linear-app/requirements.txt Identical CVE-flagged version bumps applied; omi-linear-app does not use FastAPI's Form() or file upload parameters, so the fastapi/python-multipart runtime incompatibility does not apply here.

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]
Loading

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@mdmohsin7
mdmohsin7 merged commit 9a540cc into main May 19, 2026
3 checks passed
@mdmohsin7
mdmohsin7 deleted the rex/plugins-linear-hive-deps branch May 19, 2026 20:25
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.

1 participant