Skip to content

chore(deps): drop unused npm-check-updates devDep to clear tar alerts#1306

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

chore(deps): drop unused npm-check-updates devDep to clear tar alerts#1306
mishushakov merged 3 commits intomainfrom
mishushakov/dependabot-alerts

Conversation

@mishushakov
Copy link
Copy Markdown
Member

@mishushakov mishushakov commented Apr 30, 2026

Summary

Resolves the remaining 6 high-severity Dependabot alerts for tar on the default branch. tar@6.2.1 was being pulled in transitively via npm-check-updates@16 -> pacote@15 / cacache -> tar@^6, and Dependabot's <= 7.5.10 ranges include 6.x semver-wise. Since npm-check-updates was declared as a devDependency but never actually invoked anywhere (no script, CI workflow, or doc references it), removing it entirely is cleaner than bumping it — alerts cleared with zero risk of regression.

After removal, the lock contains only tar@7.5.12, which satisfies all six advisories.

Test plan

  • pnpm run lint (js-sdk + cli)
  • pnpm run typecheck (js-sdk + cli)
  • pnpm run format (js-sdk + cli)
  • tar-related unit tests pass (tests/template/utils, tests/template/uploadFile — 54 tests)

🤖 Generated with Claude Code

Resolves the remaining 6 Dependabot alerts for tar (high). tar@6.2.1
was pulled in transitively via npm-check-updates@16 -> pacote@15 /
cacache -> tar@^6. Bumping ncu to v22 (which has no transitive deps)
eliminates the tar@6 chain; only tar@7.5.12 remains in the lock,
satisfying all advisories.

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

cursor Bot commented Apr 30, 2026

PR Summary

Low Risk
Dependency-only change that drops a dev tool and prunes a large set of transitive packages (including older tar), with minimal runtime impact but potential CI/script breakage if ncu was relied on elsewhere.

Overview
Removes npm-check-updates from the js-sdk devDependencies and updates pnpm-lock.yaml to eliminate its previously pulled-in dependency chain.

As a result, a large set of lockfile-only transitive packages are removed (notably the older tar@6 lineage), reducing vulnerability surface and overall install footprint.

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

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 30, 2026

⚠️ No Changeset found

Latest commit: e54d550

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

Package Artifacts

Built from 61c0830. Download artifacts from this workflow run.

JS SDK (e2b@2.19.4-mishushakov-dependabot-alerts.0):

npm install ./e2b-2.19.4-mishushakov-dependabot-alerts.0.tgz

CLI (@e2b/cli@2.10.2-mishushakov-dependabot-alerts.0):

npm install ./e2b-cli-2.10.2-mishushakov-dependabot-alerts.0.tgz

Python SDK (e2b==2.20.3+mishushakov-dependabot-alerts):

pip install ./e2b-2.20.3+mishushakov.dependabot.alerts-py3-none-any.whl

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b0a7bc8ddf

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/js-sdk/package.json Outdated
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

LGTM, devDependency bump to clear tar Dependabot alerts.

Extended reasoning...

Overview

This PR bumps the npm-check-updates devDependency in packages/js-sdk from ^16.14.20 to ^22.0.1 and refreshes pnpm-lock.yaml accordingly. The motivation is to eliminate the transitive tar@6.x chain (pulled in via pacote@15/cacache) that triggered six high-severity Dependabot alerts. The new ncu v22 has zero runtime deps, so the lockfile delta is large but mechanical (removing the entire transitive subtree).

Security risks

None. npm-check-updates is a developer CLI for checking for newer dependency versions — it's not bundled into the published SDK and doesn't run in production code paths. The change is strictly security-positive (removes vulnerable transitive deps from the dev environment).

Level of scrutiny

Low scrutiny appropriate. This is a single-line devDependency version bump in package.json plus the corresponding lockfile churn. There is no logic change, no public API change, and no runtime impact. The author verified engine compatibility (Node 20.19.5 in CI satisfies ncu v22's ^20.19.0 || ^22.12.0 || >=24.0.0), and ran lint/typecheck/format plus tar-related unit tests successfully.

Other factors

The bug hunting system found no issues. The cursor bot also flagged this as low risk. The only nit is the missing changeset, which is expected/correct here since this is a dev-only change with no user-facing version bump.

ncu v22 requires Node ^20.19.0 || ^22.12.0 || >=24, which is stricter
than the SDK's declared "node": ">=20" engine. With engine-strict=true
in .npmrc, that breaks installs for devs on Node 20.0-20.18. v20.0.2
declares node: >=20.0.0 (matches our floor exactly), still ships with
zero transitive deps, and keeps tar@6 out of the lock.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Comment thread packages/js-sdk/package.json Outdated
@mishushakov mishushakov changed the title chore(deps): bump npm-check-updates to v22 to clear tar Dependabot alerts chore(deps): bump npm-check-updates to v20 to clear tar Dependabot alerts Apr 30, 2026
The package was declared in packages/js-sdk/package.json but never
invoked - no script, CI workflow, or doc references it. Removing it
also drops the transitive tar@6.2.1 chain (via pacote/cacache),
which clears the 6 remaining high-severity Dependabot alerts.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@mishushakov mishushakov changed the title chore(deps): bump npm-check-updates to v20 to clear tar Dependabot alerts chore(deps): drop unused npm-check-updates devDep to clear tar alerts Apr 30, 2026
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 e54d550. Configure here.

Comment thread packages/js-sdk/package.json
@mishushakov mishushakov merged commit bd99b23 into main Apr 30, 2026
19 of 23 checks passed
@mishushakov mishushakov deleted the mishushakov/dependabot-alerts branch April 30, 2026 17:27
mishushakov added a commit that referenced this pull request Apr 30, 2026
## Summary

Adds a patch changeset for the `e2b` JS SDK to cover #1306 (commit
bd99b23), which removed the unused `npm-check-updates` devDependency
to clear the remaining `tar@6` Dependabot security alerts.

The original PR landed without a changeset, so the next release would
skip publishing the SDK despite the `package.json` change. This file
ensures the dependency cleanup gets a proper patch bump.

## Test plan

- [x] `.changeset/drop-npm-check-updates.md` follows the repo's existing
changeset format (frontmatter + summary line)
- [ ] Changesets bot picks up the entry on the PR

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.

2 participants