Skip to content

fix(deps): update uuid to v11 to patch GHSA-w5hq-g745-h8pq - #16

Merged
melissa-lomray merged 2 commits into
prodfrom
chore/deps-2026-11-25
Nov 25, 2026
Merged

melissa-lomray merged 2 commits into
prodfrom
chore/deps-2026-11-25

Conversation

@melissa-lomray

Copy link
Copy Markdown
Contributor

Summary

Clears every open Dependabot alert on this repository (71: 55 in the root lockfile, 16 in docs-tests/package-lock.json) and ships the one runtime fix as a patch release.

fix(deps): update uuid to v11 to patch GHSA-w5hq-g745-h8pq

  • uuid ^9.0.1 → ^11.1.1 (published dependency). src/use-modal.ts only uses import { v4 as uuidv4 } from 'uuid', which is unchanged in v11; uuid 11 ships its own types, so @types/uuid is removed.
  • overrides["@babel/runtime"]: ^7.26.10 (GHSA-968p-4wvh-cqc8, pulled in by build tooling).
  • Dev tooling: @commitlint/* 18 → 21 (needs Node ≥ 22.12; CI uses .nvmrc 22.23.2), @rollup/plugin-terser 0.4 → 1, semantic-release 21 → 25 (26 needs Node ≥ 26.13, so it stays on 25).
  • Lockfile refreshed and npm audit fix applied. No blanket npm update: it hits ERESOLVE on mobx-react-lite.

chore(deps): update docs-tests dependencies

  • react-router / react-router-dom 7.9.0 → 7.18.7, ajv 8.17.1 → 8.20.0.
  • overrides: uuid ^11.1.1 (the published 2.0.1 still pins uuid 9; this can be dropped once 2.0.2 is out) and fast-uri ^3.1.9.

Alert coverage

Checked each alert's vulnerable range against every matching entry in the new lockfiles: 0 of 71 still resolve to a vulnerable version.

Lockfile Package Alerts Severity Patched in Resolved now
docs-tests fast-uri #129, #130, #131, #132 low/medium 3.1.9 3.1.9
docs-tests react-router #101, #102, #103, #104, #107, #108, #109, #110, #113, #114, #115 high/medium 7.18.0, 7.14.2, 7.14.1, 7.13.2, 7.12.0, 7.9.6 7.18.7
docs-tests uuid #106 medium 11.1.1 11.1.1
root @babel/core #76 low 7.29.6 8.1.3
root @babel/runtime #118 medium 7.26.10 7.29.15
root @remix-run/router #21, #93 medium/high 1.23.3, 1.23.2 removed from tree
root @tootallnate/once #72 low 2.0.1 removed from tree
root brace-expansion #80, #86, #122 medium/high 2.1.7, 1.1.16, 2.1.2 1.1.22, 5.0.12 (npm-bundled)
root braces #116 high 3.0.3 3.0.3
root flatted #50 high 3.4.2 3.4.4
root glob #20 high 10.5.0 7.2.3, 13.0.6 (npm-bundled)
root handlebars #52, #53, #54, #55, #56, #60, #61, #126, #127, #128 critical/medium/low/high 4.7.10, 4.7.9 4.7.10
root ip #2, #4 high/low null, 2.0.1 removed from tree
root js-yaml #19, #78, #85, #95, #100 high/medium 4.3.2, 4.3.1, 4.3.0, 4.2.0, 4.1.1 4.3.2
root lodash #28, #67 high/medium 4.18.0, 4.17.23 4.18.1
root lodash-es #64, #134 medium/high 4.17.23, 4.18.0 4.18.1
root minimatch #42, #44 high 3.1.3, 9.0.7 3.1.5, 10.2.5 (npm-bundled)
root picomatch #65 medium 2.3.2 4.0.4 (npm-bundled), 2.3.2, 4.0.7
root postcss-selector-parser #133 medium 6.1.5 7.1.6 (npm-bundled)
root react-router #22, #74, #87, #88 medium 7.18.0, 6.30.4, 6.30.2 7.18.7
root rollup #6, #40 high 4.59.0, 4.22.4 4.68.8
root serialize-javascript #16, #45, #71 medium/high 7.0.5, 7.0.3, 6.0.2 7.1.4
root sigstore #79 high 4.1.1 4.1.1 (npm-bundled)
root tar #24, #26, #29, #33, #47, #48, #75, #83 medium/high 7.5.18, 7.5.16, 7.5.11, 7.5.10, 7.5.8, 7.5.7, 7.5.4, 7.5.3 7.5.22 (npm-bundled)
root uuid #73 medium 11.1.1 11.1.1

(npm-bundled) entries live under node_modules/npm/node_modules/, shipped inside the npm package that @semantic-release/npm depends on. They are outside the vulnerable ranges now, are never installed into consumer trees and are not part of the published package (pkgRoot: ./lib).

Semver

fix(deps) → patch, 2.0.2. The public API is unchanged, uuid's v4 export is the same, and the published dependency ranges (@lomray/event-manager ^2.0.2, uuid ^11.1.1) need no consumer changes. uuid 11 requires Node ≥ 16 / modern bundlers, the same baseline React 18/19 consumers already have.

Verification (Node 22.23.2, npm 10.9.8)

  • Root: npm ci, npm run test:build-tooling, npm run lint:check, npm run ts:check, npm run build: all pass. lib/use-modal.js imports in a smoke check.
  • Root npm audit --omit=dev: 0 vulnerabilities. Full npm audit: only moderate npm-bundled glob/minimatch via @semantic-release/npm.
  • docs-tests: npm ci --legacy-peer-deps, npm test: pass; npm audit: 0 vulnerabilities.

uuid is the one runtime dependency with an open advisory (GHSA-w5hq-g745-h8pq,
fixed in 11.1.1). The v4 API used by useModal is unchanged and uuid 11 ships
its own types, so @types/uuid is dropped.

Dev tooling in the same lockfile:
- semantic-release 25.0.9 and commitlint 21.2.4 (Node 22.12+, CI runs 22.23.2)
- @rollup/plugin-terser 1.0.2 (serialize-javascript 7.1.4), rollup 4.68.8
- @babel/runtime override ^7.26.10 (GHSA-968p-4wvh-cqc8), lodash 4.18.1
- npm update and npm audit fix inside existing ranges

npm audit --omit=dev: 0. The full audit keeps only the glob and minimatch
copies bundled inside npm (pulled by @semantic-release/npm).
- react-router and react-router-dom 7.18.7 (GHSA-chx6-hx7r-mcp5 and the
  older 7.x advisories)
- ajv 8.20.0
- overrides: uuid ^11.1.1 (the pinned @lomray packages still pull uuid 9)
  and fast-uri ^3.1.9

npm audit in docs-tests: 0; npm test passes.
@sonarqubecloud

Copy link
Copy Markdown

@melissa-lomray
melissa-lomray merged commit 5f8615e into prod Nov 25, 2026
4 checks passed
@melissa-lomray
melissa-lomray deleted the chore/deps-2026-11-25 branch November 25, 2026 19:00
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant