Skip to content

Fix Dependabot alerts via npm overrides - #97

Merged
tekinalper merged 1 commit into
developfrom
fix/dependabot-alerts
Nov 2, 2026
Merged

tekinalper merged 1 commit into
developfrom
fix/dependabot-alerts

Conversation

@tekinalper

Copy link
Copy Markdown
Collaborator

What it does

Resolves the open Dependabot alerts that have a safe fix, through overrides in both package.json and example/package.json (lockfiles regenerated):

Package Alert Now
shell-quote critical (GHSA-pqg4-j6r4-53mv) 1.12.0
brace-expansion 1.x / 2.x high/medium (GHSA-6j4f-fj2g-mc7p, GHSA-qhr7-859c-m2p7, GHSA-q2hr-2g5m-vwhr) 1.1.21 / 2.1.7
joi medium/low (GHSA-wr44-6hxh-3jwq, GHSA-gg4h-3hg2-grpc, GHSA-6w3j-5fw6-r9vr) 17.13.9
launch-editor high/medium (GHSA-587h-7wmj-h5pm, GHSA-698v-4r3x-3vcv, GHSA-r825-w8mm-5pxw) 2.14.2
compression high (GHSA-vc2v-76pw-4v95) 1.8.2
qs medium (GHSA-6pq8-jhm2-2vcw) 6.17.1
body-parser high (npm audit) 1.20.9

Left open on purpose (all dev-tooling only, not shipped to consumers):

  • image-size (high, GHSA-w3rx-r6r6-pgpr / GHSA-5p2g-fcmc-qvqq): the only fixed line is 2.x, but Metro 0.82 (RN 0.79) does require('image-size')(buffer); 2.x removed the callable export, so forcing it breaks asset bundling. Goes away with the next React Native upgrade.
  • minimatch (medium, GHSA-g3hv-75wg-m249): fixed only in 11.0.1; eslint 8 / glob pin 3.x and call the default export, so a forced major is unsafe.
  • deepmerge (low, GHSA-gcqx-w48m-w2h4): no fixed version exists.

How to test it

  1. npm ci --legacy-peer-deps && npx tsc --noEmit (CI) passes.
  2. npm audit in root and example/: no critical; remaining items are the three listed above.
  3. cd example && npm ci --legacy-peer-deps && cd ios && pod install still succeeds.

Acceptance criteria

  • Dependabot alerts for the seven packages above are resolved on develop; no runtime dependency changed.

Link to ticket

https://trello.com/c/ywKiYIhs

🤖 Generated with Claude Code

…, joi, launch-editor, compression, qs, body-parser)

Both the package and example lockfiles now resolve the patched versions.
Not fixed on purpose: image-size (fix is 2.x, but Metro 0.82 in RN 0.79 calls
it as a function and would break asset bundling), minimatch (fix is 11.x only;
forcing it onto eslint/glob 3.x consumers is unsafe), deepmerge (no fix).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@tekinalper
tekinalper merged commit 1cb2885 into develop Nov 2, 2026
1 check passed
@tekinalper
tekinalper deleted the fix/dependabot-alerts branch November 2, 2026 15:22
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