Skip to content

fix(nodejs): raise @opentelemetry/core peer floor to >=2.8.0 (GHSA-8988-4f7v-96qf)#15

Merged
veksen merged 1 commit into
masterfrom
veksen/fix-otel-core-peer-floor
Jun 16, 2026
Merged

fix(nodejs): raise @opentelemetry/core peer floor to >=2.8.0 (GHSA-8988-4f7v-96qf)#15
veksen merged 1 commit into
masterfrom
veksen/fix-otel-core-peer-floor

Conversation

@veksen

@veksen veksen commented Jun 16, 2026

Copy link
Copy Markdown
Member

Problem

A downstream user of @query-doctor/sqlcommenter-drizzle reported a moderate npm audit finding: @opentelemetry/core <2.8.0GHSA-8988-4f7v-96qf (unbounded memory allocation in W3C Baggage propagation).

The QD sqlcommenter packages declare @opentelemetry/core as a peer with a very loose floor (>=1.0.0). That range happily resolves to a vulnerable <2.8.0 core in a consumer's tree (e.g. a lockfile generated before 2.8.0 existed never gets nudged upward), so the advisory surfaces downstream.

Fix

Raise the peer floor to >=2.8.0. The advisory has no 1.x backport2.8.0 is the only fixed line — so a tighter range that still allows 1.x isn't possible. All three affected QD packages import only W3CTraceContextPropagator from @opentelemetry/core, which is unchanged and compatible in 2.8.0.

Applies to the three QD-owned packages sharing the identical loose peer + usage (the @google-cloud/* knex/sequelize packages are upstream and out of scope):

package version peer
@query-doctor/sqlcommenter-drizzle 0.2.0 → 0.3.0 >=1.0.0>=2.8.0
@query-doctor/sqlcommenter-mikroorm 0.1.0 → 0.2.0 >=1.0.0>=2.8.0
@query-doctor/sqlcommenter-typeorm 0.1.0 → 0.2.0 >=1.0.0>=2.8.0

Version bumps are minor because dropping otel/core 1.x support is a breaking change for consumers still on 1.x.

Validation

  • All three packages build clean (tsc esm + cjs) with @opentelemetry/core resolving to 2.8.0.
  • sqlcommenter-drizzle test suite passes (15/15), including the pglite driver-integration test that exercises the propagator and verifies the injected SQL comment.

🤖 Generated with Claude Code

…88-4f7v-96qf)

The `>=1.0.0` peer range let downstream consumers resolve a vulnerable
@opentelemetry/core (<2.8.0 — unbounded memory allocation in W3C Baggage
propagation, GHSA-8988-4f7v-96qf), surfacing as a moderate `npm audit`
finding in projects that depend on these packages.

The advisory has no 1.x backport — 2.8.0 is the only fixed line — so the
peer floor is raised to `>=2.8.0`. All three packages import
W3CTraceContextPropagator from @opentelemetry/core, which is unchanged and
compatible in 2.8.0; builds and the drizzle pglite integration test pass
against the patched version.

Bumps:
- @query-doctor/sqlcommenter-drizzle  0.2.0 -> 0.3.0
- @query-doctor/sqlcommenter-mikroorm 0.1.0 -> 0.2.0
- @query-doctor/sqlcommenter-typeorm  0.1.0 -> 0.2.0

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@veksen veksen merged commit 014cfde into master Jun 16, 2026
4 checks passed
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