Repository navigation
fix(deps): clear 34 trivy findings in the lockfile - #317
Merged
Merged
Conversation
- Update fast-uri, handlebars, proxy-addr, js-yaml, msgpack5, undici, body-parser and brace-expansion within their ranges. - Override qs to ^6.16.1, because express 4 and body-parser pin qs to 6.15.x. - Override minimatch@>=10 to ^11.0.1. Copies that ask for ^9 or ^3 keep their versions. - Leave the dev-only copies bundled under semantic-release/npm alone. They cannot be overridden. Checks: npm@10 ci passes, npm ls reports no invalid tree, and npm test passes 230 tests. Refs GH-316
|
rohit-sourcefuse
approved these changes
Nov 20, 2026
rohit-sourcefuse
left a comment
There was a problem hiding this comment.
I checked this locally.
npx npm@10 ci, build, lint and all 230 tests pass, andnpm ls --allexits 0. Master gives the same results.- The lockfile is stable under npm 10. All 31 new entries resolve from registry.npmjs.org with an integrity hash.
- Prod Trivy goes from 39 findings to 1, the uuid 8.3.2 noted in the description.
- qs 6.17.1 under express 4: query strings, nested filters and urlencoded bodies parse the same as with 6.15.3.
- minimatch 11 under juggler: kv-memory
keys({match})returns the same keys as with 10.2.6. - commitizen keeps glob 7.2.3 and minimatch 3.1.5, so the range key leaves
git czalone.
One small, optional point. The table lists brace-expansion 2.1.8, but the lockfile still has 2.1.4 (dev only, under mocha's minimatch 9 and filelist). It is in range, so it can move without an override:
npx npm@10 update brace-expansion --package-lock-only --ignore-scriptsThis changes 3 lines in the lockfile. After it, npm ci, npm ls --all and the tests pass, and Trivy with dev dependencies no longer reports brace-expansion 2.1.4.
Once this merges, dependabot PRs #308, #309 and #311 to #315 are covered and can be closed. #310 (moment) is not.
Approving.
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.



Description
This clears the 34 open Trivy findings in
package-lock.json. Three are critical. The rest are high or medium. The change is a lockfile update plus twooverrideslines inpackage.json. No source code changes.Most packages move within their existing semver ranges, so the dependencies in
package.jsonstay as they are. Two packages need an override, because something pins them below the fixed version:qsis overridden to^6.16.1. Express 4 and body-parser pin qs to 6.15.x, so an in-range update can't reach the fix.minimatch@>=10is overridden to^11.0.1. Only the copies that ask for ^10 move. Copies that ask for ^9 or ^3 keep their versions.The other packages are updated in range with
npm update --package-lock-only. Fixed versions:I tried
minimatch@>=7first. It also moved the root minimatch 9.0.9 that mocha, typescript-estree and rimraf use. That created new nested copies and more drift, so I narrowed the override to>=10.Not covered
uuid8.3.2 is still flagged. It comes in through hyperid and@loopback/context, and it wasn't in the 34 findings this PR targets. I left it alone. It can be a follow-up if you want it in scope.semantic-release/npm(brace-expansion 5.0.7, minimatch 10.2.5, undici 6.27.0) are dev-only, and an override can't reach them. They stay as they are.Fixes #316
Type of change
How Has This Been Tested ?
npx npm@10 ci --ignore-scriptsinstalls cleanly. I used npm 10 on purpose, because npm 11 lockfiles can fail a CInpm ci.npm ls --allreports no invalid dependencies.npm testpasses: clean, build, 230 tests, prettier and eslint all green.package-lock.jsonat medium and above: the 34 findings drop to 0. The only remaining hit is the unmaileduuid8.3.2 noted above.No new tests were added, since the change is to the dependency tree and the existing suite covers the runtime paths.
Checklist: