Skip to content

fix: resolve all open Dependabot security alerts#317

Merged
mishushakov merged 2 commits into
mainfrom
fix-dependabot-alerts
Jul 23, 2026
Merged

fix: resolve all open Dependabot security alerts#317
mishushakov merged 2 commits into
mainfrom
fix-dependabot-alerts

Conversation

@mishushakov

Copy link
Copy Markdown
Member

Fixes all 30 open alerts on https://github.com/e2b-dev/code-interpreter/security/dependabot

Pillow 12.2.0 → 12.3.0 (25 alerts, high/medium)

Bumped in all three manifests: template/requirements.txt, python/poetry.lock, chart_data_extractor/poetry.lock. Fixes heap out-of-bounds writes (ImageCmsTransform.apply(), Image.paste()/crop(), RankFilter), several decompression-bomb-check bypasses (font loading, GD images), OS command injection in WindowsViewer.get_command(), and multiple DoS issues. Includes a changeset for @e2b/code-interpreter-template.

npm transitive deps in pnpm-lock.yaml (5 alerts)

  • js-yaml 3.14.2 → 3.15.0 and 4.1.1 → 4.3.0 — quadratic merge-key DoS (GHSA-52cp-r559-cp3m, GHSA-h67p-54hq-rp68)
  • brace-expansion 1.1.14 → 1.1.16 — exponential-time expansion DoS (GHSA-3jxr-9vmj-r5cp)
  • esbuild 0.27.x → 0.28.1 — dev-server file read on Windows (GHSA-g7r4-m6w7-qqqr, low). Both vite 7.3.5 and tsup 8.5.1 (latest) pin ^0.27.0, so this needs a pnpm.overrides entry in the root package.json.

Verification

  • poetry lock diffs contain only the pillow version change (rest is wheel-hash churn)
  • pnpm run build in js/ (tsc + tsup) succeeds with esbuild 0.28.1
  • vitest boots and transforms all 31 test files with the overridden esbuild

🤖 Generated with Claude Code

- Bump pillow 12.2.0 -> 12.3.0 in template/requirements.txt,
  python/poetry.lock, and chart_data_extractor/poetry.lock
  (25 alerts: heap OOB writes, decompression bomb bypasses, DoS)
- Update js-yaml to 3.15.0 / 4.3.0 (GHSA-52cp-r559-cp3m,
  GHSA-h67p-54hq-rp68: quadratic merge-key DoS)
- Update brace-expansion to 1.1.16 (GHSA-3jxr-9vmj-r5cp)
- Force esbuild >=0.28.1 via pnpm override (GHSA-g7r4-m6w7-qqqr);
  vite 7.3.5 and tsup 8.5.1 both pin ^0.27.0, so an override is
  required. Verified tsup build and vitest transform still work.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cla-bot cla-bot Bot added the cla-signed label Jul 23, 2026
@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Dependency-only security bumps with no application logic changes; esbuild override is dev-tooling scoped though it affects the whole pnpm tree.

Overview
Closes open Dependabot alerts by bumping Pillow from 12.2.0 to 12.3.0 in the code-interpreter template (template/requirements.txt) and both Poetry lockfiles (python/, chart_data_extractor/), with a patch changeset for @e2b/code-interpreter-template.

On the JS side, root pnpm.overrides forces esbuild to ≥0.28.1 (vite/tsup still pull 0.27.x), and pnpm-lock.yaml picks up patched transitive versions (js-yaml, brace-expansion, postcss). .tool-versions moves Poetry from 1.8.5 to 2.1.1, which also reformats the Poetry lock metadata.

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

Comment thread python/poetry.lock
python/poetry.lock and chart_data_extractor/poetry.lock are now both
lock-version 2.1, which Poetry 1.8.5 cannot install deterministically
(it silently re-resolves). The chart_data_extractor lock was already
lock-version 2.1 on main, so charts CI was already affected; pinning
2.1.1 (the binary that generated both locks in this PR) fixes both.
Verified with `poetry check --lock` and `poetry install --dry-run` in
both packages. All poetry commands used in CI (install, install --with
dev, build, run, config pypi-token, publish --skip-existing) are
unchanged in Poetry 2.x.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mishushakov
mishushakov merged commit 8d51873 into main Jul 23, 2026
16 checks passed
@mishushakov
mishushakov deleted the fix-dependabot-alerts branch July 23, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants