Skip to content

Bump dependencies to fix security alerts - #149

Merged
wu-sheng merged 1 commit into
masterfrom
bump/security-deps-2026-11
Nov 2, 2026
Merged

wu-sheng merged 1 commit into
masterfrom
bump/security-deps-2026-11

Conversation

@wu-sheng

@wu-sheng wu-sheng commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Bumps dependencies in package-lock.json to close open Dependabot alerts, and updates the GitHub Actions used by CI.

Runtime dependency

Package Old -> New Alerts
protobufjs (via @grpc/grpc-js -> @grpc/proto-loader) 7.6.2 -> 7.6.6 GHSA-f38q-mgvj-vph7 / CVE-2026-54269, GHSA-j3f2-48v5-ccww / CVE-2026-59877

Lockfile-only; the existing ^7.5.5 range from @grpc/proto-loader already allows it.

Dev dependencies (lockfile only, npm audit fix without --force)

Package Old -> New Alerts
@babel/core 7.16.0 -> 7.29.7 GHSA-4x5r-pxfx-6jf8 / CVE-2026-49356
@babel/traverse 7.16.3 -> 7.29.12 GHSA-67hx-6x53-jw92 / CVE-2023-45133
body-parser 1.19.0 -> 1.20.9 GHSA-qwcr-r2fm-qrc7 / CVE-2024-45590
brace-expansion 1.1.11, 2.0.1 -> 1.1.21, 2.1.7 GHSA-3jxr-9vmj-r5cp / CVE-2026-13149
browserslist 4.18.1 -> 4.29.5 GHSA-73wf-gq98-2v4g / CVE-2026-73088
cookie 0.4.0 -> 0.7.2 GHSA-pxg6-pf52-xh8x / CVE-2024-47764
express 4.17.1 -> 4.22.3 GHSA-qw6h-vgh9-j6wx / CVE-2024-43796, GHSA-rv95-896h-c2vc / CVE-2024-29041
flatted 3.2.5 -> 3.4.4 GHSA-rf6f-7fwh-wjgh / CVE-2026-33228
follow-redirects 1.15.1 -> 1.16.2 GHSA-r4q5-vmmm-2653, GHSA-cxjh-pqwp-8mfp / CVE-2024-28849, GHSA-jchw-25xp-jwwc / CVE-2023-26159
form-data 3.0.1 -> 3.0.5 GHSA-hmw2-7cc7-3qxx / CVE-2026-12143, GHSA-fjxv-7rqg-78g4 / CVE-2025-7783
js-yaml 3.14.1, 4.1.0 -> 3.15.2, 4.3.2 GHSA-2883-xcg3-v3hh / CVE-2026-84375, GHSA-5p4m-2wfm-xmqj, GHSA-52cp-r559-cp3m / CVE-2026-59869, GHSA-h67p-54hq-rp68 / CVE-2026-53550, GHSA-mh29-5h37-fv8m / CVE-2025-64718
json5 1.0.1, 2.2.0 -> 1.0.2, 2.2.3 GHSA-9c47-m6qq-7p4h / CVE-2022-46175
lodash 4.17.21 -> 4.18.1 GHSA-f23m-r3pf-42rh / CVE-2026-2950, GHSA-r5fr-rjxr-66jc / CVE-2026-4800, GHSA-xxjr-mmjv-4gpg / CVE-2025-13465
minimatch 3.0.4, 3.1.2, 5.1.6 -> 3.1.5, 5.1.9, 9.0.9 GHSA-7r86-cg39-jmmj / CVE-2026-27903
minimist 1.2.5 -> 1.2.8 GHSA-xvch-5gv4-984h / CVE-2021-44906
mongoose 5.13.13 -> 5.13.23 GHSA-m7xq-9374-9rvx / CVE-2024-53900, GHSA-h8hf-x3f4-xwgp / CVE-2022-24304, GHSA-9m93-w8w6-76hh / CVE-2023-3696, GHSA-f825-f98c-gj3g / CVE-2022-2564
picomatch 2.3.0 -> 2.3.2 GHSA-3v7f-55p6-f55p / CVE-2026-33672
qs 6.7.0 -> 6.16.2 GHSA-w7fw-mjwx-w883 / CVE-2026-2391, GHSA-6rw7-vpxm-498p / CVE-2025-15284, GHSA-hrpp-h998-j3pp / CVE-2022-24999
send 0.17.1 -> 0.19.2 GHSA-m6fv-jmcg-4jfg / CVE-2024-43799
serve-static 1.14.1 -> 1.16.3 GHSA-cm22-4g7w-348p / CVE-2024-43800
tar 7.5.16 -> 7.5.22 GHSA-w8wr-v893-vjvp / CVE-2026-59871
tar-fs 2.0.1, 3.0.4 -> 2.1.5, 3.1.3 GHSA-vj76-c3g6-qr5v / CVE-2025-59343, GHSA-8cj5-5rvv-wf4v / CVE-2025-48387, GHSA-pq67-2wwv-3xjx / CVE-2024-12905
tmp 0.2.1 -> 0.2.7 GHSA-ph9p-34f9-6g65 / CVE-2026-44705, GHSA-52f5-9888-hmc6 / CVE-2025-54798
tough-cookie 4.0.0 -> 4.1.4 GHSA-72xf-g2v4-qvf3 / CVE-2023-26136
ws 7.5.6 -> 7.5.13 GHSA-96hv-2xvq-fx4p / CVE-2026-48779, GHSA-3h5v-q93c-6h6q / CVE-2024-37890

testcontainers (dev, test harness) moves 10.3.2 -> 10.10.4 in the lockfile, inside its existing ^10.3.2 range, to pick up the fixed tar-fs 3.x and tmp. 10.10.4 is the newest 10.x that Jest 26 can load: 10.11+ pulls archiver 7 (glob 10) and later dockerode 4 (uuid 10), which use node: protocol imports (require('node:crypto'), node:url). Jest 26 cannot resolve those, and an earlier revision of this PR (testcontainers 10.28.0) failed every plugin and remote E2E suite at load time with ENOENT: no such file or directory, open 'node:crypto'. A moduleNameMapper of ^node:(.*)$ does not help on Jest 26 (it then tries to read a file named crypto), and upgrading Jest is a separate change.

Dev dependencies fixed with overrides in package.json

These are transitive dev deps whose parents pin a vulnerable range, so no in-range fix exists:

Package Old -> New Why an override Alerts
handlebars 4.7.7 -> 4.7.10 grpc_tools_node_protoc_ts@5.3.3 (latest) pins 4.7.7 exactly; patch bump only GHSA-p8wg-vrv2-v86f / CVE-2026-106445, GHSA-2w6w-674q-4c4q / CVE-2026-33937, GHSA-3mfm-83xf-c92r / CVE-2026-33938, GHSA-xhpv-hc6g-r9c6 / CVE-2026-33940, GHSA-xjpj-3mr7-gcpf / CVE-2026-33941, GHSA-2qvq-rjwj-gvw9 / CVE-2026-33916, GHSA-7rx3-28cr-v5wh, GHSA-442j-39wm-28r2
@tootallnate/once 1.1.2 -> 2.0.1 jest 26 -> jsdom 16 -> http-proxy-agent@4 requires ^1; same default-export shape. jsdom is not loaded at all (testEnvironment: 'node') GHSA-vpq2-c234-7xj6 / CVE-2026-3449
tar-fs under dockerode 2.0.1 -> 2.1.5 testcontainers 10.10.4 -> dockerode 3.3.5 requires ~2.0.1; 2.1.x is a minor bump of the same API GHSA-vj76-c3g6-qr5v / CVE-2025-59343, GHSA-8cj5-5rvv-wf4v / CVE-2025-48387, GHSA-pq67-2wwv-3xjx / CVE-2024-12905
micromatch under sane 3.1.10 -> 4.0.8 jest 26 -> jest-haste-map -> sane@4 (watch mode only) requires micromatch 3, which pulls braces 2.x and decode-uri-component 0.2.x. micromatch 4 has the some/any/isMatch/matcher APIs sane and anymatch 2 use braces: GHSA-grv7-fg5c-xmjg / CVE-2024-4068; decode-uri-component: GHSA-vcc3-ghjq-m6fr / CVE-2026-45822, GHSA-w573-4hg7-7wgq / CVE-2022-38900

GitHub Actions

actions/* and apache/* are implicitly trusted by the ASF allowlist check. Kept the existing pin style (tag for actions/*, SHA for skywalking-eyes):

  • actions/checkout v2 / v4 -> v7 (9 uses)
  • actions/cache v4 -> v6 (6 uses)
  • actions/setup-node v4 -> v7 (6 uses). setup-node v5+ auto-caching only kicks in when package.json has a packageManager field, which this repo does not have, so the explicit actions/cache steps stay as they are.
  • apache/skywalking-eyes/header 501a28d2fb4a9b962661987e50cf0219631b32ff -> a196742f472feaffafea537ce5a2a4c3c53a8de4 (v0.9.0). v0.9.0 fails on the protocol git submodule (read protocol: is a directory), so protocol is added to paths-ignore in .licenserc.yaml. The submodule is the upstream skywalking-data-collect-protocol repo and carries its own headers.

There are no third-party actions and no apache/skywalking-infra-e2e usage in this repo. Plugin/remote E2E tests run through testcontainers' DockerComposeEnvironment (compose v2), and I found nothing in the workflows that would break on Docker 29 (no docker-compose v1 calls, no fixed ubuntu-20.04/22.04 runners).

License

dist/LICENSE is maintained by hand in this repo (.licenserc.yaml has no dependency: section and no script runs license-eye dependency resolve), and it does not list protobufjs, so it needs no change.

Deliberately left

  • uuid (runtime, GHSA-w5hq-g745-h8pq / CVE-2026-41907, fixed only in >= 11.1.1): moving from 8.x to 11 is a new major, and uuid 11's typings do not compile with the repo's TypeScript 3.9 (node_modules/uuid/dist/cjs/index.d.ts(1,1): error TS1383: Only named exports may use 'export type'). The advisory covers a missing buffer bounds check in v3/v5/v6 when a buf argument is passed. The agent only calls v4() with no buffer (src/trace/ID.ts), so that code path is not reachable. Fixing it means upgrading TypeScript or swapping to crypto.randomUUID(), which belongs in a separate change.
  • axios (0.21.x -> needs 0.33.0), mongoose (5.x -> needs 6.13.10), mysql2 (2.x -> needs 3.22.0): these dev dependencies are the libraries the plugins instrument, and the Docker plugin tests run against them. Upgrading them changes the tested compatibility target, not shipped code, so it is left out of a security bump. The in-range mongoose 5.13.23 bump above is included.

Expected to close 69 of 98 open alerts. The remaining 29 are axios (19), mysql2 (6), mongoose (3) and uuid (1), for the reasons above. There are no open Dependabot PRs to supersede.

Verified locally (Node 25.9 / npm 11.12)

  • npm ci: pass
  • npm run build (protoc codegen with handlebars 4.7.10 + tsc): pass
  • npm run lint: pass
  • npx jest --testPathIgnorePatterns "/node_modules/" "/tests/plugins/" "/tests/remote-e2e/" --runInBand: 9 suites / 57 tests pass
  • npx jest tests/remote-e2e/static-failover tests/plugins/mysql2 with no Docker available: both suites now load and fail only at Could not find a working container runtime strategy (before the fix: ENOENT ... 'node:crypto' at load time). A Docker-free jest test that imports testcontainers and dockerode also passes.
  • license-eye header check v0.9.0 with the updated .licenserc.yaml: 0 invalid
  • Plugin tests, remote E2E and TestLib need Docker; I did not run them locally, so CI on this PR covers them.

@apache apache deleted a comment from tkNobug Nov 2, 2026
@wu-sheng wu-sheng added this to the 0.10.0 milestone Nov 2, 2026
@wu-sheng wu-sheng added the dependencies Keep tracking dependencies version, CVE, etc. label Nov 2, 2026
Dependencies (package-lock.json, plus package.json overrides):
- protobufjs (runtime, via @grpc/grpc-js -> @grpc/proto-loader)
  7.6.2 -> 7.6.6 within the existing range.
- npm audit fix (no --force) for dev dependencies: @babel/*, body-parser,
  brace-expansion, browserslist, cookie, express 4.22.3, flatted,
  follow-redirects, form-data, js-yaml, json5, lodash, minimatch,
  minimist, mongoose 5.13.23, picomatch, qs, send, serve-static, tar,
  tar-fs, tmp, tough-cookie, ws.
- Overrides for transitive dev deps with no in-range fix:
  handlebars ^4.7.10 (pinned 4.7.7 by grpc_tools_node_protoc_ts),
  @tootallnate/once ^2.0.1 (jsdom -> http-proxy-agent 4),
  micromatch ^4.0.8 under sane (drops braces 2.x and
  decode-uri-component 0.2.x), tar-fs ^2.1.4 under dockerode 3.
- testcontainers 10.3.2 -> 10.10.4 in the lockfile. 10.11+ pulls
  archiver 7 / glob 10 and dockerode 4 / uuid 10, which use `node:`
  imports that Jest 26 cannot resolve and break every Docker-based
  test suite at load time.
- uuid, axios, mysql2 and mongoose 6+ are left: they need new majors
  (uuid 11 typings do not compile with TypeScript 3.9; the others are
  the plugin compatibility targets).

GitHub Actions:
- actions/checkout v2/v4 -> v7, actions/cache v4 -> v6,
  actions/setup-node v4 -> v7.
- apache/skywalking-eyes/header 501a28d -> a196742 (v0.9.0); add the
  protocol submodule to paths-ignore in .licenserc.yaml, which v0.9.0
  otherwise fails to read ("read protocol: is a directory").
- No apache/skywalking-infra-e2e or third-party actions are used.

License: dist/LICENSE is maintained by hand (no license-eye dependency
config) and does not list protobufjs, so it is unchanged.
@wu-sheng
wu-sheng force-pushed the bump/security-deps-2026-11 branch from a47fa5e to c9651d9 Compare November 2, 2026 08:56
@wu-sheng
wu-sheng merged commit 5d500b9 into master Nov 2, 2026
43 checks passed
@wu-sheng
wu-sheng deleted the bump/security-deps-2026-11 branch November 2, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Keep tracking dependencies version, CVE, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants