Repository navigation
fix(deps): Resolve critical and high pnpm audit advisories - #1381
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Coverage Results 📊✅ Patch coverage is 100.00% (no changed executable lines found; target 80%). Coverage diff@@ Coverage Diff @@
## main #1381 +/-##
==========================================
Coverage 55.54% 55.54% —%
==========================================
Files 81 81 —
Tracked lines 2588 2588 —
Branches 1891 1891 —
==========================================
Hits 1441 1441 —
Misses 1147 1147 —
Partials 186 186 —Generated by Coverage Action |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e1f9b2f. Configure here.
| "@sentry/react": "^10.31.0", | ||
| "@sentry/browser": "^10.78.0", | ||
| "@sentry/electron": "^7.20.2", | ||
| "@sentry/react": "^10.78.0", |
There was a problem hiding this comment.
Conflicting OpenTelemetry API versions
Medium Severity
@sentry/electron 7.20.2 pulls @sentry/node 10.75.0 with @opentelemetry/api 1.10.0, while catalog @sentry/node 10.78.0 requires @opentelemetry/api <1.10.0 and resolves 1.9.1. Both load in the Electron main process because the sidecar is started there. OpenTelemetry keeps one global per API copy, so startSpan and getTraceData in the sidecar can miss the tracer Electron initialized, dropping sidecar spans and emptying server-timing trace headers.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit e1f9b2f. Configure here.
…1382) **Stacked on #1381**, with that PR's branch `security/deps-audit-tier-a` as the base. Merge #1381 first; this diff only shows the change on top of it. Clears the last 7 moderate `pnpm audit` findings, taking audit from 7 to **0**. The advisory list comes from `pnpm audit`, not from Dependabot, because Dependabot alerts couldn't be read for this repo. | Package | Advisory | Severity | Old → new | How | |---|---|---|---|---| | glob | GHSA-3g3m-2fjr-6pw4 | moderate | 9.3.5, 10.5.0, 13.0.6 → 14.0.6 | override `glob@>=9.0.0 <14.0.2` → `>=14.0.2 <15` (replaces the glob 10 override from #1381) | | minimatch | GHSA-g3hv-75wg-m249 | moderate | 8.0.7, 9.0.9, 10.2.5, 10.2.6 → 11.0.9 | override `minimatch@>=7.0.0 <11.0.1` → `>=11.0.1 <12` (replaces the `~8.0.6` and `~9.0.7` overrides) | ### Risk These overrides force new major versions under packages that never asked for them. Affected consumers: - `@sentry/vite-plugin` 2.x / bundler-plugin-core, which wanted glob 9 - `js-beautify` (via `beautify`), which wanted glob 10 - `@typescript-eslint` 6.x, which wanted minimatch 9 - `electron-builder` / `app-builder-lib`, which wanted minimatch 10 - `@vercel/nft` and `@sentry/vite-plugin` 5.x in the website, which wanted glob 13 All of these are build and dev tooling; none of it ships in the runtime bundle. No upstream release has the fix yet: the latest bundler-plugin-core and js-beautify still depend on glob `^13`. So the override is the only fix right now. If a tool breaks on the new glob/minimatch API, it would break at build or package time. Electron packaging (`electron-builder`) was not exercised locally. ### Open question Is forcing these majors worth it for build-only exposure? Dropping this PR and waiting for upstream fixes is also an option. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3Aba78d80c987b01285c01a2bcd3293d06 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Aba78d80c987b01285c01a2bcd3293d06) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Aba78d80c987b01285c01a2bcd3293d06/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>


Bumps direct deps and pnpm overrides so
pnpm auditgoes from 38 (1 critical, 10 high, 26 moderate, 1 low) to 7 moderate. The 7 left are build-time-onlyglob/minimatchand are handled in a stacked follow-up PR.The advisory list comes from
pnpm audit, not from Dependabot. Dependabot alerts couldn't be read for this repo, so the two lists may differ.Advisories fixed
>=1.11.0>=2.4.0^0.35.5>=1.2.2 <2undici@7→>=7.30.1 <8zod^4.6.6; removed unusedzod@^3from websiteglob@10→>=10.5.0 <11hono^4.13.16@sentry/*catalog and@sentry/browser/react^10.78.0,@sentry/electron^7.20.2vitestand@vitest/coverage-v8^4.1.12>=6.1.5 <7Not fixed here
globGHSA-3g3m-2fjr-6pw4 (<14.0.2) andminimatchGHSA-g3hv-75wg-m249 (<11.0.1), both moderate, are still open. They only come in through build and dev tools:@sentry/vite-plugin,js-beautify,@typescript-eslint,electron-builderand@vercel/nft. No upstream release has the fix, so the only option is forcing major-version overrides, and that's split into the stacked PR.Open questions
zod/v3import path:packages/spotlight/src/serverimportszod/v3, which now resolves to zod 4.6.7. It hasn't been checked whether the GHSA-mrhx-c7xc-m3w5 fix also covers thezod/v3compat entry point.@sentry/electron7.20.2 pins@sentry/node10.75.0. Its@opentelemetry/sdk-trace-base/core/resources2.x want@opentelemetry/api <1.10.0but get 1.10.0. The website also reports@opentelemetry/core >=2.8.0as a missing peer of@sentry/astro10.78.0. Neither warning shows up onmain.@sentry/electron7.20.2 pins@sentry/browser/core10.75.0, while the app uses 10.78.0.mainhas the same kind of skew (10.29 vs 10.32) and the sameelectron-index.tsxtype error, so this isn't new."files": ["dist"]onto one line inpackages/spotlight/package.json.via @BYK.
--
View Session [Sentry]