Skip to content

chore(deps): resolve Dependabot security alerts across npm and python#1302

Open
mishushakov wants to merge 2 commits intomainfrom
mishushakov/dependabot-fixes
Open

chore(deps): resolve Dependabot security alerts across npm and python#1302
mishushakov wants to merge 2 commits intomainfrom
mishushakov/dependabot-fixes

Conversation

@mishushakov
Copy link
Copy Markdown
Member

Summary

Resolves all 31 open Dependabot alerts across the workspace.

  • npm — added range-based pnpm.overrides to bump vulnerable transitive deps to their patched versions: postcss, vite, lodash, brace-expansion, picomatch (2.x + 4.x), yaml, @tootallnate/once, smol-toml, flatted, and minimatch (3.x/5.x/9.x/10.x).
  • python-sdk — bumped dev deps in poetry.lock: pytest 7.4 → 9.0.3 (with constraint update in pyproject.toml), pytest-asyncio 0.23 → 1.3 (required for pytest 9), python-dotenv 1.2.2, pygments 2.20.0, requests 2.33.1, black 26.3.1; removed 4 now-unused # ty: ignore directives that pytest 9's stricter type signatures made obsolete.

Test plan

  • `pnpm run typecheck` passes
  • `pnpm run lint` passes
  • `pnpm run format` clean
  • CLI tests (80/80) and js-sdk/python-sdk unit tests pass; integration tests not run locally (need `E2B_API_KEY`)

🤖 Generated with Claude Code

Bump vulnerable transitive npm deps (postcss, vite, lodash, brace-expansion,
picomatch, yaml, @tootallnate/once, smol-toml, flatted, minimatch) via
range-based pnpm overrides. Bump python-sdk dev deps in poetry.lock
(pytest 9.0.3, pytest-asyncio 1.3.0, python-dotenv 1.2.2, pygments 2.20.0,
requests 2.33.1, black 26.3.1). Remove now-unused ty:ignore directives that
pytest 9's stricter type signatures made obsolete.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 29, 2026

⚠️ No Changeset found

Latest commit: 292d4e6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cursor
Copy link
Copy Markdown

cursor Bot commented Apr 29, 2026

PR Summary

Medium Risk
Primarily dependency/lockfile changes, but includes major-version upgrades to Python test infrastructure and async fixture lifecycle handling that could cause CI/test regressions or subtle cleanup timing differences.

Overview
Updates the JS/TS workspace dependency resolution by expanding pnpm.overrides to force patched versions of several vulnerable transitive packages (including postcss, vite, lodash, brace-expansion, picomatch, yaml, @tootallnate/once, smol-toml, flatted, and multiple minimatch ranges), with corresponding lockfile churn.

Upgrades Python SDK dev tooling in pyproject.toml/poetry.lock (notably pytest to 9.0.3 and pytest-asyncio to 1.3.0, plus related bumps like black, requests, python-dotenv, pygments) and adjusts pytest configuration/fixtures to match new asyncio defaults (switching async fixtures to pytest_asyncio.fixture, removing the custom session event_loop, and ensuring async resource cleanup occurs in async teardown).

Reviewed by Cursor Bugbot for commit 292d4e6. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 29, 2026

Package Artifacts

Built from ac54dec. Download artifacts from this workflow run.

JS SDK (e2b@2.19.3-mishushakov-dependabot-fixes.0):

npm install ./e2b-2.19.3-mishushakov-dependabot-fixes.0.tgz

CLI (@e2b/cli@2.10.1-mishushakov-dependabot-fixes.0):

npm install ./e2b-cli-2.10.1-mishushakov-dependabot-fixes.0.tgz

Python SDK (e2b==2.20.2+mishushakov-dependabot-fixes):

pip install ./e2b-2.20.2+mishushakov.dependabot.fixes-py3-none-any.whl

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1fb935b. Configure here.

Comment thread packages/python-sdk/pyproject.toml
Comment thread packages/python-sdk/pyproject.toml
pytest-asyncio 1.x deprecated the session-scoped event_loop fixture
override, which caused class-based async tests to fail with
"Event loop is closed" — the per-loop httpx transport cache in
AsyncTransportWithLogger was keyed by id(loop), and recycled loop
addresses returned stale transports tied to closed loops.

Pin tests and fixtures to a single session loop via
asyncio_default_fixture_loop_scope and asyncio_default_test_loop_scope,
and convert async_sandbox_factory and async_volume to yield-style async
fixtures so cleanup runs in the same loop without run_until_complete.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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