Skip to content

fix(deps): Resolve critical and high pnpm audit advisories - #1381

Merged
BYK merged 1 commit into
mainfrom
security/deps-audit-tier-a
Nov 17, 2026
Merged

BYK merged 1 commit into
mainfrom
security/deps-audit-tier-a

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Bumps direct deps and pnpm overrides so pnpm audit goes from 38 (1 critical, 10 high, 26 moderate, 1 low) to 7 moderate. The 7 left are build-time-only glob/minimatch and 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

Package Advisory Severity Old → new How
shell-quote GHSA-pqg4-j6r4-53mv critical 1.10.0 → ≥1.11.0 override >=1.11.0
body-parser GHSA-27r3-jxmh-p828 high 2.3.0 → ≥2.4.0 override >=2.4.0
sharp GHSA-wq5f-xc86-pv6w high 0.35.4 → ≥0.35.5 override + website dep ^0.35.5
source-map-js GHSA-68fv-2mgg-jv7q high 1.2.1 → ≥1.2.2 new override >=1.2.2 <2
undici GHSA-2m5v-pch6-74hx, GHSA-4w7w-5xrc-9h26, GHSA-qrxm-fqhp-jwvm, GHSA-xjj6-f33q-929c (high); GHSA-4qv8-2p9j-2685, GHSA-55wc-3pg8-jfw6, GHSA-9fm3-97px-rjf6, GHSA-f72v-6w45-q472 (moderate) high 7.30.0 → ≥7.30.1 new override undici@7 → >=7.30.1 <8
zod GHSA-mrhx-c7xc-m3w5 high 4.1.13, 3.25.76 → 4.6.7 spotlight zod ^4.6.6; removed unused zod@^3 from website
glob GHSA-5j98-mcp5-4vw2 high 10.4.5 → ≥10.5.0 new override glob@10 → >=10.5.0 <11
hono GHSA-3gg2-335m-rxc6 (low); GHSA-46wx-v44x-9hh2, GHSA-4h7h-rv7c-7m2v, GHSA-4m76-xfj5-7975, GHSA-h7mg-cq63-vhpq (moderate) low/moderate 4.13.11 → ≥4.13.16 spotlight hono ^4.13.16
@opentelemetry/instrumentation-* (http, knex, mongoose, mysql, mysql2, pg, tedious) GHSA-3v2p-hm54-8qcq, GHSA-qqmp-wf37-98f9 moderate → patched @sentry/* catalog and @sentry/browser/react ^10.78.0, @sentry/electron ^7.20.2
@vitest/mocker GHSA-qxg6-89mg-rqv8, GHSA-xp26-3454-mjgp moderate 4.1.11 → ≥4.1.12 catalog vitest and @vitest/coverage-v8 ^4.1.12
postcss-selector-parser GHSA-rj75-hqrm-r3gf moderate 6.1.4 → ≥6.1.5 override >=6.1.5 <7

Not fixed here

glob GHSA-3g3m-2fjr-6pw4 (<14.0.2) and minimatch GHSA-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-builder and @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/v3 import path: packages/spotlight/src/server imports zod/v3, which now resolves to zod 4.6.7. It hasn't been checked whether the GHSA-mrhx-c7xc-m3w5 fix also covers the zod/v3 compat entry point.
  • New peer warnings: @sentry/electron 7.20.2 pins @sentry/node 10.75.0. Its @opentelemetry/sdk-trace-base/core/resources 2.x want @opentelemetry/api <1.10.0 but get 1.10.0. The website also reports @opentelemetry/core >=2.8.0 as a missing peer of @sentry/astro 10.78.0. Neither warning shows up on main.
  • Version skew: @sentry/electron 7.20.2 pins @sentry/browser/core 10.75.0, while the app uses 10.78.0. main has the same kind of skew (10.29 vs 10.32) and the same electron-index.tsx type error, so this isn't new.
  • The repo's biome pre-commit hook collapsed "files": ["dist"] onto one line in packages/spotlight/package.json.

via @BYK.

--

View Session [Sentry]

@vercel

vercel Bot commented Nov 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
spotlightjs Ready Ready Preview Nov 17, 2026 1:13pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ Patch coverage is 100.00% (no changed executable lines found; target 80%).
Project statement coverage is 55.54% (unchanged from base (a7785a0) to head (e1f9b2f)).

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

@sentry-junior
sentry-junior Bot added this pull request to stack #1383 November 17, 2026 13:15
@BYK
BYK marked this pull request as ready for review November 17, 2026 16:38
@sentry-junior
sentry-junior Bot requested a review from BYK November 17, 2026 16:38
@BYK
BYK merged commit 78258a8 into main Nov 17, 2026
27 checks passed
@BYK
BYK deleted the security/deps-audit-tier-a branch November 17, 2026 16:39

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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 e1f9b2f. Configure here.

"@sentry/react": "^10.31.0",
"@sentry/browser": "^10.78.0",
"@sentry/electron": "^7.20.2",
"@sentry/react": "^10.78.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 &lt;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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e1f9b2f. Configure here.

BYK pushed a commit that referenced this pull request Nov 17, 2026
…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>

This branch was successfully deployed

1 active deployment
Preview — e1f9b2f2 Deployed Nov 17, 2026 by sentry-junior[bot] via Build #2465
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