Repository navigation
fix: override glob under @sentry/bundler-plugins to clear two advisories - #456
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
There was a problem hiding this comment.
✅ 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.
globoverride:pnpm-workspace.yamlpins"@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-lockfilereports the lockfile is up to date.pnpm auditreports no known vulnerabilities.pnpm why -r globshows only[email protected], reached through@sentry/bun→@sentry/node→@sentry/[email protected].[email protected]still ships both CJS and ESM entry points.require("glob").globresolves from bundler-plugins'build/cjs/core/glob.js, which is the only place it uses glob. That call isglob(patterns, { absolute: true, nodir: true, ...options }), and it still works on v14.- The engines fields (
glob18 || 20 || >=22,minimatch20 || >=22) fit the rootengines.node. .github/renovate.jsonstill 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.
claude-opus-5-5 | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
Two moderate Dependabot alerts are open against
pnpm-lock.yaml:glob13.0.6: AbortSignal cancellation bypass allows post-timeout filesystem traversal (fixed in 14.0.2)minimatch10.2.6: denial of service via globparts amplification (fixed in 11.0.1)Both come only from
@sentry/bun→@sentry/node→@sentry/bundler-plugins.@sentry/bunis flame's optional peer, and it's installed here throughautoInstallPeers. Upstream hasn't fixed this yet: even the latest@sentry/bundler-plugins11.10.0 still asks forglob ^13.0.6.Changes
pnpm-workspace.yaml:"@sentry/bundler-plugins>glob": "14.0.3". It pullsminimatch11.0.4 andpath-scurry3.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/bunresolve Sentry's own range. No changeset.Compatibility
@sentry/bundler-pluginsuses 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 thePattern/GlobWalkerinternals and in howignorepatterns that start with/are rooted. Theglob()call shape is unchanged.Verification
pnpm audit: No known vulnerabilities found. Onmainit reports these 2 moderate advisories.pnpm why -r glob minimatch: only[email protected]and[email protected]remain.Ran bundler-plugins' own
globFileson glob 14.0.3 against a fixture tree, with each of its three call shapes:{ root }with/**/*.{js,mjs,cjs,map}{ ignore: ["**/skip/**"] }.mapdelete listAll three returned the expected files.
Real
@sentry/bun11.4.0 on Bun 1.4.2:initandcaptureExceptionwork and return an event id. (sentry.test.tsmocks the module, so it doesn't cover this.)pnpm turbo run lint typecheck build test --filter=@docubook/flame...: 16/16 tasks pass, includingsentry.test.ts(7/7).renovate-config-validator --strictpasses.