Skip to content

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

Merged
mishushakov merged 3 commits intomainfrom
mishushakov/dependabot-fixes
Apr 30, 2026
Merged

chore(deps): resolve Dependabot security alerts across npm and python#1302
mishushakov merged 3 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

🦋 Changeset detected

Latest commit: 66b1bf6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@e2b/python-sdk Patch
@e2b/cli Patch
e2b Patch

Not sure what this means? Click here to learn what changesets are.

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

@cursor
Copy link
Copy Markdown

cursor Bot commented Apr 29, 2026

PR Summary

Medium Risk
Dependency and lockfile churn is broad (npm overrides + multiple Python tooling upgrades), which can introduce subtle build/test regressions. The pytest/async fixture lifecycle changes may affect test stability and cleanup behavior across the suite.

Overview
Resolves Dependabot security alerts by adding range-based pnpm.overrides to force patched versions of vulnerable transitive npm dependencies (including postcss, vite, lodash, brace-expansion, picomatch, yaml, @tootallnate/once, smol-toml, flatted, minimatch) and updating pnpm-lock.yaml accordingly.

Upgrades Python SDK dev dependencies in pyproject.toml/poetry.lock (notably pytest and pytest-asyncio, plus python-dotenv, pygments, requests, black) and adjusts test configuration to match newer pytest-asyncio behavior: pytest.ini sets session-scoped asyncio loop defaults, conftest.py removes the custom event_loop fixture and reworks async fixtures to use pytest_asyncio with async teardown, and a few tests simplify pytest.skip calls.

Reviewed by Cursor Bugbot for commit 66b1bf6. 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 93afdc1. 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>
Copy link
Copy Markdown

@arkamar arkamar left a comment

Choose a reason for hiding this comment

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

The change looks good to me, CI seems to be unrelated.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@mishushakov mishushakov enabled auto-merge (squash) April 30, 2026 14:26
@mishushakov mishushakov merged commit 55e9e0e into main Apr 30, 2026
26 of 35 checks passed
@mishushakov mishushakov deleted the mishushakov/dependabot-fixes branch April 30, 2026 14:45
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