Repository navigation
Bump dependencies to fix security alerts - #149
Merged
Merged
Conversation
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
force-pushed
the
bump/security-deps-2026-11
branch
from
November 2, 2026 08:56
a47fa5e to
c9651d9
Compare
kezhenxu94
approved these changes
Nov 2, 2026
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.
Bumps dependencies in
package-lock.jsonto close open Dependabot alerts, and updates the GitHub Actions used by CI.Runtime dependency
Lockfile-only; the existing
^7.5.5range from@grpc/proto-loaderalready allows it.Dev dependencies (lockfile only,
npm audit fixwithout--force)testcontainers(dev, test harness) moves 10.3.2 -> 10.10.4 in the lockfile, inside its existing^10.3.2range, 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 usenode: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 withENOENT: no such file or directory, open 'node:crypto'. AmoduleNameMapperof^node:(.*)$does not help on Jest 26 (it then tries to read a file namedcrypto), and upgrading Jest is a separate change.Dev dependencies fixed with
overridesinpackage.jsonThese are transitive dev deps whose parents pin a vulnerable range, so no in-range fix exists:
grpc_tools_node_protoc_ts@5.3.3(latest) pins4.7.7exactly; patch bump onlyhttp-proxy-agent@4requires^1; same default-export shape. jsdom is not loaded at all (testEnvironment: 'node')dockerode~2.0.1; 2.1.x is a minor bump of the same APIsanesane@4(watch mode only) requires micromatch 3, which pulls braces 2.x and decode-uri-component 0.2.x. micromatch 4 has thesome/any/isMatch/matcherAPIs sane and anymatch 2 useGitHub Actions
actions/*andapache/*are implicitly trusted by the ASF allowlist check. Kept the existing pin style (tag foractions/*, SHA for skywalking-eyes):actions/checkoutv2 / v4 -> v7 (9 uses)actions/cachev4 -> v6 (6 uses)actions/setup-nodev4 -> v7 (6 uses). setup-node v5+ auto-caching only kicks in whenpackage.jsonhas apackageManagerfield, which this repo does not have, so the explicitactions/cachesteps stay as they are.apache/skywalking-eyes/header501a28d2fb4a9b962661987e50cf0219631b32ff -> a196742f472feaffafea537ce5a2a4c3c53a8de4 (v0.9.0). v0.9.0 fails on theprotocolgit submodule (read protocol: is a directory), soprotocolis added topaths-ignorein.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-e2eusage 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 (nodocker-composev1 calls, no fixedubuntu-20.04/22.04runners).License
dist/LICENSEis maintained by hand in this repo (.licenserc.yamlhas nodependency:section and no script runslicense-eye dependency resolve), and it does not list protobufjs, so it needs no change.Deliberately left
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 inv3/v5/v6when abufargument is passed. The agent only callsv4()with no buffer (src/trace/ID.ts), so that code path is not reachable. Fixing it means upgrading TypeScript or swapping tocrypto.randomUUID(), which belongs in a separate change.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: passnpm run build(protoc codegen with handlebars 4.7.10 +tsc): passnpm run lint: passnpx jest --testPathIgnorePatterns "/node_modules/" "/tests/plugins/" "/tests/remote-e2e/" --runInBand: 9 suites / 57 tests passnpx jest tests/remote-e2e/static-failover tests/plugins/mysql2with no Docker available: both suites now load and fail only atCould not find a working container runtime strategy(before the fix:ENOENT ... 'node:crypto'at load time). A Docker-free jest test that importstestcontainersanddockerodealso passes.license-eye header checkv0.9.0 with the updated.licenserc.yaml: 0 invalidTestLibneed Docker; I did not run them locally, so CI on this PR covers them.