Skip to content

chore(deps): raise vulnerable pins — axios, ws, nanoid, form-data + tooling (ENG-607) - #734

Merged
islandbitcoin merged 1 commit into
mainfrom
chore/eng-607-dep-pins
Sep 24, 2026
Merged

islandbitcoin merged 1 commit into
mainfrom
chore/eng-607-dep-pins

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

Closes ENG-607.

Raises the vulnerable dependency pins flagged by Dependabot. Only package.json (dependencies.axios + resolutions) and yarn.lock change; no source edits.

Device-facing (ships in the app bundle)

Package Old (resolved) New (resolved) Why it matters
axios ^1.6.2 dep / ^1.8.2 res (1.15.1) ^1.18.0 dep / ^1.20.0 res (1.20.0) HTTP client used at runtime; open alerts cover SSRF/credential-leak and DoS classes up to 1.18.0
ws ^8.18.0 (8.20.0) ^8.21.0 (8.21.3) WebSocket client under subscriptions-transport-ws / GraphQL subscriptions; DoS fixes in 8.20.1 and 8.21.0
nanoid ^3.3.8 (3.3.11) ^3.3.18 (3.3.19) ID generation under @react-navigation; predictable-ID fixes through 3.3.18
form-data ^4.0.4 (4.0.5) ^4.0.6 (4.0.6) Multipart bodies for uploads; boundary-predictability fix in 4.0.6

ws was already being forced onto 8.x for the ^5||^6||^7 consumer (subscriptions-transport-ws) by the existing pin, so this is a patch-level move, not a new major. nanoid stays on the 3.x line @react-navigation declares.

Tooling / build-time

Package Old (resolved) New (resolved)
brace-expansion ^2.0.2 (2.1.0) ^2.1.4 (2.1.7)
tmp ^0.2.4 (0.2.5) ^0.2.6 (0.2.7)
postcss ^8.4.49 (8.5.10) ^8.5.23 (8.5.28)
serialize-javascript ^6.0.2 (6.0.2) 7.1.1 (exact)
websocket-driver none (0.7.4) ^0.7.5 (0.7.5) — new resolution
@xmldom/xmldom none (0.8.13) ^0.8.15 (0.8.15) — new
browserslist none (4.28.2) ~4.28.7 (4.28.9) — new
fast-uri none (3.1.0) ^3.1.6 (3.1.8) — new
svgo none (3.3.3) ^3.3.5 (3.3.5) — new
qs none (6.15.1 / 6.14.2) ^6.16.0 (6.16.0) — new
protobufjs none (7.5.5) ^7.6.5 (7.6.6) — new
js-yaml no pin (4.1.1 / 3.14.2) no pin; lock refreshed in-range to 4.3.2 / 3.15.2
immutable (5.x) no pin (5.1.5) no pin; lock refreshed in-range to 5.1.9

Notes:

  • serialize-javascript 7.x: the only breaking change in 7.0.0 is engines.node >= 20 (release notes); this repo is on Node 24. Consumers are terser-webpack-plugin (storybook webpack) and mocha, both build/test-only. Pinned exact 7.1.1 rather than ^7.0.5 because 7.1.2 was published 2026-09-23 (one day old).
  • browserslist uses ~4.28.7 -> 4.28.9 for the same reason: 4.29.1 was published today (2026-09-24).
  • js-yaml: a bare resolutions entry would drag the 3.x consumers (@istanbuljs/load-nyc-config, metro-config's cosmiconfig@5, which still call safeLoad) onto 4.x and break them. Yarn 1 resolutions cannot target a version line, so instead the lock entries were re-resolved within each consumer's declared range: ^4.x -> 4.3.2, ^3.x -> 3.15.2. Both patched versions are from 2026-08-26.
  • immutable: same situation. ^5.1.5 (under @ardatan/relay-compiler@13) re-resolved in-range to 5.1.9. Not pinned.

Skipped

Checks run

  • yarn install (non-frozen), git diff --stat = package.json + yarn.lock only. All lock diffs are the target packages and their own transitive deps (@protobufjs/*, caniuse-lite/electron-to-chromium/node-releases/update-browserslist-db/baseline-browser-mapping under browserslist, follow-redirects/mime-types under axios/form-data, side-channel/hasown under qs, long under protobufjs).
  • yarn check-code (tsc, translations, codegen, graphql-check): green.
  • yarn test (full jest, --runInBand): green (115 suites, 1161 tests)
  • Android build proof with the production bundle (react-native bundle --dev false + gradlew assembleDebug -PreactNativeArchitectures=arm64-v8a, AGP 8.7.2): BUILD SUCCESSFUL (4m17s)

Dependabot alerts expected to close

Remaining open from this set: immutable 3.x #174 #497 #523 (see Skipped).

🤖 Generated with Claude Code

@linear

linear Bot commented Sep 24, 2026

Copy link
Copy Markdown

ENG-607

@islandbitcoin
islandbitcoin merged commit 88625db into main Sep 24, 2026
9 checks passed
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