Skip to content

fix(security): resolve Dependabot security vulnerabilities across workspace - #10831

Closed
undivisible wants to merge 11 commits into
BasedHardware:mainfrom
undivisible:fix/dependabot-updates
Closed

undivisible wants to merge 11 commits into
BasedHardware:mainfrom
undivisible:fix/dependabot-updates

Conversation

@undivisible

@undivisible undivisible commented Jul 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Resolves open Dependabot security vulnerabilities across the workspace by updating dependency manifests to patch-level range specifiers (~= for Python, ~ for Node package.json/overrides), allowing automatic inclusion of future security patch releases in each minor version group without major/minor version breaking changes.

Changes by Subsystem & Commit Structure

  1. fix(backend): update vulnerable python dependencies to patch ranges (~=) (b970028fc6)

    • Configured Python requirements (backend/requirements.txt, backend/openapi-requirements.txt, backend/pusher/requirements.txt, backend/modal/requirements.txt) using PEP 440 compatible release constraints (~= e.g., aiohttp~=3.14.1, cryptography~=48.0.1, GitPython~=3.1.55, httplib2~=0.32.0, langchain~=1.3.14, langchain-core~=1.4.9, langgraph~=1.2.10, langgraph-checkpoint~=4.1.1, langgraph-sdk~=0.4.2, langgraph-prebuilt~=1.1.0, langsmith~=0.8.18, msgpack~=1.2.1, pillow~=12.3.0, pyarrow~=23.0.1, pyasn1~=0.6.4, PyJWT~=2.13.0, python-multipart~=0.0.31, starlette~=0.49.3, torch~=2.10.0, tornado~=6.5.7, websockets~=15.0.1).
    • Regenerated Python lockfiles (pylock.toml, pylock.macos.toml, pylock.windows.toml, etc.) via ./backend/scripts/update-python-lock.sh.
  2. fix(desktop): update vulnerable dependencies in desktop apps to patch ranges (~) (364570239b)

    • Configured SemVer tilde patch ranges (~) in package.json and overrides for desktop/macos/agent, desktop/macos/demo, desktop/macos/pi-mono-extension, and desktop/windows.
  3. fix(web): update vulnerable dependencies in web applications to patch ranges (~) (c6e5bac9ee)

    • Configured tilde patch ranges (~) for next (~16.2.11 / ~15.5.21), postcss (~8.5.18), sharp (~0.35.0), brace-expansion (~5.0.8), and js-yaml (~5.2.2) across web/admin, web/app, web/frontend, and web/personas-open-source.
  4. fix(sdks): update vulnerable dependencies in react-native sdk and example to patch ranges (~) (0c70ed7776)

    • Configured tilde patch ranges (~) for brace-expansion, fast-uri, js-yaml, shell-quote, tar, and postcss in sdks/react-native and sdks/react-native/example.
  5. fix(mcp): update vulnerable python dependencies in mcp server to patch ranges (~=) (b46ac6f898)

    • Configured ~= compatible release constraints for gitpython, mcp, pillow, pyasn1, and pydantic-settings in mcp/examples/requirements.txt and mcp/pyproject.toml lockfile constraints.
  6. fix(plugins): update vulnerable python dependencies in plugins to patch ranges (~=) (52eab1a9f2)

    • Configured ~= compatible release constraints for jupyterlab, mistune, and setuptools in plugins/requirements.txt.
  7. fix(docs): update vulnerable dependencies in docs to patch ranges (~) (18592c458f)

    • Configured tilde patch ranges (~) for axios, brace-expansion, fast-uri, and js-yaml in docs/package.json.
  8. fix(omiGlass): update vulnerable dependencies in omiGlass to patch ranges (~) (0925999202)

    • Configured tilde patch ranges (~) for tar, postcss, js-yaml, and brace-expansion in omiGlass/package.json.
  9. fix(root): update vulnerable dependencies in root package to patch ranges (~) (747ff9a1b5)

    • Configured tilde patch ranges (~) for @hono/node-server, hono, brace-expansion, tar, and postcss in root package.json.

Failure-Class: none

@cursor

cursor Bot commented Jul 29, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@undivisible
undivisible force-pushed the fix/dependabot-updates branch 4 times, most recently from 28d39c8 to 3f9e342 Compare July 29, 2026 06:35
@undivisible undivisible added the no-changelog-needed Skip desktop changelog enforcement for internal-only changes label Jul 29, 2026
@undivisible
undivisible force-pushed the fix/dependabot-updates branch from 3f9e342 to 91312cc Compare July 29, 2026 06:44

@tianmind-studio tianmind-studio left a comment

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.

Two blocking Windows dependency-resolution issues remain: the new transitive security overrides are not applied by pnpm, and the proposed React Router override would be an incompatible major/engine change once made effective.

Comment thread desktop/windows/package.json Outdated
"vite": "^7.2.6",
"vitest": "^3.2.4"
},
"overrides": {

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] Put Windows overrides in pnpm's active configuration.

desktop/windows installs from pnpm-lock.yaml, and this repo's existing pnpm overrides live in desktop/windows/pnpm-workspace.yaml. The npm-style top-level package.json.overrides block is not represented in the regenerated pnpm lock: this head still resolves @hono/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], and [email protected], despite the new block requesting newer versions. A frozen install therefore succeeds while shipping the versions this PR says it replaces. Move the applicable entries into the existing pnpm-workspace.yaml overrides: map and regenerate the lock, then verify the resolved versions rather than only the manifest text.

Comment thread desktop/windows/package.json Outdated
"fast-uri": "~3.1.4",
"js-yaml": "~4.3.0",
"postcss": "~8.5.18",
"react-router": "~8.3.0",

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] Do not force React Router 8 beneath React Router DOM 7.

Once this override is moved into pnpm's effective configuration, it would replace [email protected]'s exact dependency on [email protected] with 8.3.x. That is a major-version API mismatch, not the patch-only update described by the PR. [email protected] also declares Node >=22.22.0, while the Windows package currently supports >=22.19.0 <23. Please either update and test the parent react-router-dom dependency as a coordinated major upgrade (and reconcile the Node engine), or use a compatible patched 7.x release; a transitive major override is unsafe.

Failure-Class: none

Verification: pnpm install --frozen-lockfile; pnpm exec electron-builder install-app-deps; pnpm run typecheck; pnpm run lint; git diff --check.

@tianmind-studio tianmind-studio left a comment

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.

Re-reviewed 5bf9369: pnpm overrides now live in pnpm-workspace.yaml, the lockfile stays on React Router 7.18.2 instead of v8, and both Windows Typecheck/Lint/Test and build smoke are green. The original blockers are resolved, so I'm approving. One non-blocking documentation nit: @hono/node-server is an intentional major security override to 2.0.12, and the React Router age exclusions are not part of the ACP/Anthropic group, so the rationale should avoid describing every Node change as patch-only or under that one dependency closure.

@Git-on-my-level Git-on-my-level added dependency-review Touches dependencies or lockfiles; needs dependency review needs-maintainer-review Needs a human maintainer to sign off before merge labels Jul 29, 2026

@Git-on-my-level Git-on-my-level left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for taking on the security dependency sweep here. I re-checked the current head after the Windows pnpm override fixes: the relevant CI/checks are green, and I don't see evidence of a malicious package-source swap in the lockfile changes from the cached diff.

Because this is still a broad security/dependency PR across Python, npm, pnpm, desktop, web, SDK, MCP, and lockfiles, I don't think it should receive automation approval. A maintainer should do the final dependency-policy signoff before merge, especially for the intentional runtime/engine-impacting updates such as Next/sharp and the agent-runtime dependency closures.

Agent/AI behavior note: this PR does not add natural-language agent instructions, but it does touch dependencies used by Omi's agent-facing/runtime surfaces (for example desktop/macos/agent, desktop/windows ACP/Claude/pi-coding-agent lockfile resolution, and backend requirements that feed runtime services). That can change how coding/review/agent integrations execute indirectly through dependency behavior, so the guidance is safe as a security update only if maintainers are comfortable with those version/engine changes.

Recommendation: positive signal / human dependency review required; no blocking issue from my pass, but no formal approval from automation for this risk surface.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@undivisible

Copy link
Copy Markdown
Collaborator Author

Superseded by #10875, which has the identical head commit on a BasedHardware-owned branch as part of the fork retirement.

@github-actions

Copy link
Copy Markdown
Contributor

Hey @undivisible 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

This branch was successfully deployed

1 active deployment
staging - docs — 5bf93696 Deployed Jul 30, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency-review Touches dependencies or lockfiles; needs dependency review needs-maintainer-review Needs a human maintainer to sign off before merge no-changelog-needed Skip desktop changelog enforcement for internal-only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants