cli icon indicating copy to clipboard operation
cli copied to clipboard

fix(deps): bump vulnerable opentelemetry and esbuild dependencies

Open youvalv opened this issue 5 months ago โ€ข 4 comments

Addresses reported vulnerabilities in opentelemetry and esbuild dependencies.

  • Bumps the direct @opentelemetry/api dependency to ^1.9.1.
  • Adds overrides to force patched versions of the relevant transitive dependencies, since the source packages pin them exactly / with ~:
    • @netlify/otel: @opentelemetry/core ^2.8.0, @opentelemetry/instrumentation ^0.219.0, @opentelemetry/resources ^2.8.0, @opentelemetry/sdk-trace-node ^2.8.0
    • @netlify/edge-bundler and @netlify/zip-it-and-ship-it: esbuild ^0.28.1

The overrides can be removed once the source packages release with these bumps. npm install resolves cleanly and npm run typecheck passes.

youvalv avatar Jun 16 '26 12:06 youvalv

Review Change Stack

No actionable comments were generated in the recent review. ๐ŸŽ‰

โ„น๏ธ Recent review info
โš™๏ธ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0f8367b0-d8ed-4daa-ad11-39af81482eb8

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 30ba6a1ed65af3045a1565cc3b87b27747b65e9e and 2812b0a14666d4b7e0942683869664d0f28ea7a7.

โ›” Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
๐Ÿ“’ Files selected for processing (1)
  • package.json
๐Ÿ”— Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • netlify/blueprints (manual)

๐Ÿ“ Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated OpenTelemetry API dependency and pinned related package versions to improve stability and ensure consistent behavior across the system.

Walkthrough

package.json receives two related changes. The direct @opentelemetry/api dependency is bumped from ^1.8.0 to ^1.9.1. A new top-level overrides block is added that pins @opentelemetry/api to ^1.9.1, fixes several @netlify/otel transitive OpenTelemetry package versions, and forces esbuild to ^0.28.1 for both @netlify/edge-bundler and @netlify/zip-it-and-ship-it.

Estimated code review effort

๐ŸŽฏ 2 (Simple) | โฑ๏ธ ~5 minutes

๐Ÿšฅ Pre-merge checks | โœ… 5
โœ… Passed checks (5 passed)
Check name Status Explanation
Title check โœ… Passed The title accurately summarizes the main change: bumping vulnerable opentelemetry and esbuild dependencies, which directly matches the changeset content.
Description check โœ… Passed The description is clearly related to the changeset, providing detailed explanations of the vulnerability fixes, specific version updates, and the rationale for using overrides.
Docstring Coverage โœ… Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check โœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check โœ… Passed Check skipped because no linked issues were found for this pull request.

โœ๏ธ Tip: You can configure your own custom pre-merge checks in the settings.

โœจ Finishing Touches
๐Ÿงช Generate unit tests (beta)
  • [ ] Create PR with unit tests
  • [ ] Commit unit tests in branch youvalvaknin/ex-2432-bump-vulnerable-opentelemetry-and-esbuild-dependencies-8c3a

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Jun 16 '26 12:06 coderabbitai[bot]

@coderabbit review

youvalv avatar Jun 16 '26 12:06 youvalv

โœ… Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

coderabbitai[bot] avatar Jun 16 '26 12:06 coderabbitai[bot]

๐Ÿ“Š Benchmark results

Comparing with 30ba6a1ed65af3045a1565cc3b87b27747b65e9e

  • Dependency count: 1,126 โฌ‡๏ธ 0.09% decrease vs. 30ba6a1ed65af3045a1565cc3b87b27747b65e9e
  • Package size: 375 MB โฌ‡๏ธ 0.87% decrease vs. 30ba6a1ed65af3045a1565cc3b87b27747b65e9e
  • Number of ts-expect-error directives: 353 (no change)

github-actions[bot] avatar Jun 16 '26 12:06 github-actions[bot]