Skip to content

fix: override glob under @sentry/bundler-plugins to clear two advisories - #456

Merged
gitfromwildan merged 1 commit into
mainfrom
fix/sentry-glob-override
Nov 5, 2026
Merged

gitfromwildan merged 1 commit into
mainfrom
fix/sentry-glob-override

Conversation

@gitfromwildan

Copy link
Copy Markdown
Member

Why

Two moderate Dependabot alerts are open against pnpm-lock.yaml:

Both come only from @sentry/bun → @sentry/node → @sentry/bundler-plugins. @sentry/bun is flame's optional peer, and it's installed here through autoInstallPeers. Upstream hasn't fixed this yet: even the latest @sentry/bundler-plugins 11.10.0 still asks for glob ^13.0.6.

Changes

  • pnpm-workspace.yaml: "@sentry/bundler-plugins>glob": "14.0.3". It pulls minimatch 11.0.4 and path-scurry 3.0.0.
  • .github/renovate.json: the override-majors rule description now lists this consumer-scoped override and says to drop it once Sentry depends on glob 14.0.2 or later.

Workspace overrides aren't published, so this clears the repo's lockfile only. flame users who install @sentry/bun resolve Sentry's own range. No changeset.

Compatibility

@sentry/bundler-plugins uses glob in exactly one place, core/glob.js: glob.glob(patterns, { absolute: true, nodir: true, ...options }). Its callers pass { root } or { ignore }, and only for sourcemap upload or cleanup at build time, which flame never runs. glob 14's breaking changes are in the Pattern/GlobWalker internals and in how ignore patterns that start with / are rooted. The glob() call shape is unchanged.

Verification

  • pnpm audit: No known vulnerabilities found. On main it reports these 2 moderate advisories.

  • pnpm why -r glob minimatch: only [email protected] and [email protected] remain.

  • Ran bundler-plugins' own globFiles on glob 14.0.3 against a fixture tree, with each of its three call shapes:

    • { root } with /**/*.{js,mjs,cjs,map}
    • { ignore: ["**/skip/**"] }
    • the .map delete list

    All three returned the expected files.

  • Real @sentry/bun 11.4.0 on Bun 1.4.2: init and captureException work and return an event id. (sentry.test.ts mocks the module, so it doesn't cover this.)

  • pnpm turbo run lint typecheck build test --filter=@docubook/flame...: 16/16 tasks pass, including sentry.test.ts (7/7).

  • renovate-config-validator --strict passes.

Dependabot alerts #51 (glob, AbortSignal cancellation bypass) and #53
(minimatch, globparts amplification DoS) come only from @sentry/bun ->
@sentry/node -> @sentry/bundler-plugins, which still asks for glob ^13.0.6
in its latest 11.10.0. The fixes ship in glob 14.0.2 and minimatch 11.0.1.

The override pins @sentry/bundler-plugins>glob to 14.0.3, which pulls
minimatch 11.0.4 and path-scurry 3.0.0. bundler-plugins only calls
glob.glob(patterns, { absolute, nodir, root | ignore }) for sourcemap
uploads, an API glob 14 keeps. pnpm audit now reports no known
vulnerabilities.

Workspace overrides are not published, so this covers the repo's lockfile
only; flame users who install @sentry/bun resolve Sentry's own range. The
Renovate override rule notes when to drop it.
@vercel

vercel Bot commented Nov 5, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Nov 5, 2026 2:26am UTC

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes

Reviewed the whole PR in standard mode. It adds a consumer-scoped pnpm override that moves @sentry/bundler-plugins onto glob 14, which clears the two moderate advisories.

  • glob override: pnpm-workspace.yaml pins "@sentry/bundler-plugins>glob": "14.0.3". This follows the existing consumer-scoped pattern (mermaid>katex). The lockfile now resolves [email protected], [email protected] and [email protected], and adds @isaacs/[email protected].
  • Renovate rule description: the rule that disables override majors now names this override and says when to drop it. The rule's matchers are unchanged.

Checks run against 4b54ccc:

  • pnpm install --frozen-lockfile reports the lockfile is up to date.
  • pnpm audit reports no known vulnerabilities.
  • pnpm why -r glob shows only [email protected], reached through @sentry/bun → @sentry/node → @sentry/[email protected].
  • [email protected] still ships both CJS and ESM entry points. require("glob").glob resolves from bundler-plugins' build/cjs/core/glob.js, which is the only place it uses glob. That call is glob(patterns, { absolute: true, nodir: true, ...options }), and it still works on v14.
  • The engines fields (glob 18 || 20 || >=22, minimatch 20 || >=22) fit the root engines.node.
  • .github/renovate.json still parses.

Findings: none. Workspace overrides don't ship to consumers, so skipping the changeset is correct, and no ARCHITECTURE.md decision or pnpm-workspace.yaml convention is affected.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@gitfromwildan
gitfromwildan merged commit 765e6b7 into main Nov 5, 2026
16 checks passed
@gitfromwildan
gitfromwildan deleted the fix/sentry-glob-override branch November 5, 2026 02:31
@gitfromwildan gitfromwildan mentioned this pull request Nov 5, 2026
12 tasks
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