Skip to content

Upgrade vulnerable dependencies (Dependabot backlog, November 2026) - #2210

Merged
santicomp2014 merged 1 commit into
mainfrom
deps-vanta-2026-11
Nov 10, 2026
Merged

santicomp2014 merged 1 commit into
mainfrom
deps-vanta-2026-11

Conversation

@santicomp2014

@santicomp2014 santicomp2014 commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Consolidated upgrade of the packages with open Dependabot alerts (Vanta SOC2 "packages checked for vulnerabilities" tests). One PR instead of the individual Dependabot PRs.

How

  • No resolutions added. package.json only changes one devDependency range: @rollup/plugin-terser ^0.4.4 -> ^1.0.2 (see below). Everything else moved in yarn.lock with yarn up -R <pkg> within the existing semver ranges.
  • Every alert is on a devDependency or a transitive dev/build tool (vitest, vite, babel, eslint, svgo, rollup, node-gyp, ...). The package's runtime dependencies (highlight.js, wouter-preact) and peerDependencies are unchanged.
  • tar 6 (via node-gyp 9, pulled in by the fsevents optional build) is fixed by moving node-gyp to 13.1.0, which uses tar 7 and drops the old make-fetch-happen / cacache / http-proxy-agent tree (this also removes @tootallnate/once).
  • serialize-javascript 6.0.2 is only reachable through @rollup/plugin-terser 0.4.x, so that plugin moves to 1.0.2 (serialize-javascript 7.1.4, terser 5.36 -> 5.51). It is only used to minify the pattern library website bundle (yarn build-pattern-lib), not the published lib/.

Build-output check

  • Published library (yarn build -> lib/): built on origin/main and on this branch and diffed. The only difference is the inlined Babel _toPrimitive helper in lib/hooks/use-synced-ref.js and lib/util/listener-collection.js (from @babel/helpers 7.29.13). The new helper adds a typeof Symbol guard; behaviour is the same. Type declarations are identical.
  • Pattern library site: docker build of origin/main and of this branch (the Dockerfile still uses node:19.8.1-alpine) both succeed. Only the minified JS bundles differ by a few bytes (terser 5.51); CSS is byte-identical. The new container serves the index page and bundle.

Versions

Package Old New
@vitest/browser, @vitest/browser-playwright, @vitest/coverage-istanbul, @vitest/mocker, vitest 4.1.7 4.1.12
vite 8.0.14 8.3.6
@babel/core 7.28.5, 7.29.7 7.29.13
@babel/plugin-transform-modules-systemjs 7.28.5 7.29.8
@humanfs/node 0.16.6 0.16.8
@tootallnate/once 2.0.0 removed (no longer depended on)
@rollup/plugin-terser 0.4.4 1.0.2
serialize-javascript 6.0.2 7.1.4
brace-expansion 1.1.11, 2.0.1, 5.0.6 1.1.21, 2.1.7, 5.0.12
browserslist 4.24.4, 4.25.1 4.29.5
flatted 3.3.1 3.4.4
js-yaml 3.14.2, 4.1.0 3.15.2, 4.3.2
lodash-es 4.17.23 4.18.1
minimatch 3.1.2, 9.0.5, 10.0.1, 10.2.5 3.1.5, 9.0.9, 10.2.6
nanoid 3.3.11, 3.3.12 3.3.20
node-gyp 9.4.0 13.1.0
picomatch 2.3.1, 4.0.2, 4.0.3, 4.0.4 2.3.2, 4.0.7
postcss 8.5.6, 8.5.15 8.5.32
qs 6.15.1 6.17.1
source-map-js 1.2.1 1.2.2
svgo 4.0.1 4.1.0
tar 6.2.1 7.5.22

Alerts expected to close

62 of 63 open alerts: critical 3/3, high 32/32, medium 24/24, low 3/4.

Deferred

  • deepmerge 4.2.2 (1 low, via @rollup/plugin-node-resolve): no patched version exists.

CI note: codecov/project

codecov/project reported 97.78% on this PR. That is a known flake, not a coverage change. The same 97.78% failure is on main at 8fde089 and 3312fb5 (e77d43a and 1b352cc are back to 100%).

What happens: after the tests, vitest globs coverage.include to find "untested" files and ignores the ones already in the coverage map. Now and then a file that was covered (for example Popover.tsx, pagination.ts or a one-line *Context.ts) is not filtered out. Vitest then instruments it again from source and merges the copy, which adds duplicate, never-hit statements. Locally the same thing happens on origin/main: across repeated yarn test runs, 0 to 2 duplicated statements usually, and sometimes a whole file. The ci job (format, lint, typecheck, tests) passes. codecov/project is not a required check. Re-running the job doesn't clear it because Codecov merges uploads for the same commit.

Testing (local)

  • yarn checkformatting, yarn lint, yarn typecheck: pass.
  • yarn test: 666/666 pass.
  • yarn build: pass, with the lib/ comparison above.
  • docker build (pattern library image): pass, with the comparison above.

No code or test changes were needed.

🤖 Generated with Claude Code

Move every package with an open Dependabot alert to a patched version.
Most are lockfile-only updates within existing ranges (yarn up -R).
@rollup/plugin-terser moves to ^1.0.2 to pick up serialize-javascript 7.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.78%. Comparing base (1b352cc) to head (cde9d60).

❌ Your project check has failed because the head coverage (97.78%) is below the target coverage (100.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##              main    #2210      +/-   ##
===========================================
- Coverage   100.00%   97.78%   -2.22%     
===========================================
  Files           71       71              
  Lines         1364     1398      +34     
  Branches       509      518       +9     
===========================================
+ Hits          1364     1367       +3     
- Misses           0       31      +31     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread package.json
"@rollup/plugin-dynamic-import-vars": "^2.1.2",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-terser": "^1.0.2",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking, since you verified docker build on this branch, but worth a follow-up:
@rollup/plugin-terser 1.0.0's breaking change is "upgrade serialize-javascript to v7 and node to v20", and both @rollup/plugin-terser@1.0.2 and serialize-javascript@7.1.4 now declare engines.node: ">=20.0.0". The Dockerfile that runs this plugin (yarn build-pattern-lib) is still on node:19.8.1-alpine. Yarn doesn't enforce engines, so this version happens to work, but any 1.x patch that uses a Node 20 API would break the pattern-library image at deploy time rather than in CI. Could we open a small follow-up to move the Dockerfile to a maintained Node (20/22/24)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I will open a follow-up PR that moves the Dockerfile to a maintained Node and rebuilds the pattern-library image to confirm it.

@santicomp2014
santicomp2014 merged commit e91a85f into main Nov 10, 2026
4 of 5 checks passed
@santicomp2014
santicomp2014 deleted the deps-vanta-2026-11 branch November 10, 2026 08:34
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.

2 participants