Skip to content

chore(deps): bulk dependency updates and security fixes#217

Merged
berntpopp merged 3 commits intomasterfrom
chore/bulk-dependency-security-updates
Apr 9, 2026
Merged

chore(deps): bulk dependency updates and security fixes#217
berntpopp merged 3 commits intomasterfrom
chore/bulk-dependency-security-updates

Conversation

@berntpopp
Copy link
Copy Markdown
Owner

@berntpopp berntpopp commented Apr 9, 2026

Summary

Docker images

Image From To
rocker/r-ver 4.5.2 4.5.3
axllent/mailpit v1.29.0 v1.29.6

GitHub Actions

Action From To
dorny/paths-filter v3 v4
actions/configure-pages v5 v6
actions/deploy-pages v4 v5

npm dependencies

Package From To
rollup-plugin-visualizer 6.0.5 7.0.1
serialize-javascript 6.0.2 (transitive) ^7.0.5 (override)

Plus npm audit fix resolved 22 transitive vulnerabilities across: dompurify, vite, unhead, rollup, minimatch, picomatch, flatted, immutable, lodash/lodash-es, undici, svgo, brace-expansion, path-to-regexp, yaml, markdown-it, qs, ajv.

Dev environment fixes

  • vite.config.ts: Added allowedHosts: true — Vite 7.x host security blocks Docker proxy requests
  • docker-compose.override.yml: Added Host(127.0.0.1) to Traefik router rules for host machine access
  • api/renv.lock: Updated R version to 4.5.3 for consistency with Dockerfile and CI

Security alerts addressed

All 41 Dependabot security alerts (22 high, 17 moderate, 2 low) should be resolved by this PR.

TODO

  • Remove serialize-javascript override from app/package.json once vite-plugin-pwa updates its dependency chain (workbox-build@rollup/plugin-terserserialize-javascript >=7.0.5)

Closes #204, #208, #210, #213, #215, #216

Test plan

  • npm run lint — passes
  • npm run type-check — passes
  • npm run format:check — passes
  • npm run test:unit — 244/244 tests pass
  • npm audit — 0 vulnerabilities
  • Docker dev stack tested — all endpoints return 200
  • CI pipeline passes (lint-api, test-api, check-app, build-app)

Consolidate 6 Dependabot PRs and resolve all 26 npm security alerts:

Docker images:
- rocker/r-ver 4.5.2 → 4.5.3 (Dockerfile + CI)
- axllent/mailpit v1.29.0 → v1.29.6

GitHub Actions:
- dorny/paths-filter v3 → v4
- actions/configure-pages v5 → v6
- actions/deploy-pages v4 → v5

npm dependencies:
- rollup-plugin-visualizer 6.0.5 → 7.0.1
- npm audit fix for 22 vulnerabilities (dompurify, vite, unhead,
  rollup, minimatch, picomatch, flatted, immutable, lodash, undici,
  svgo, brace-expansion, path-to-regexp, yaml, markdown-it, qs, ajv)
- serialize-javascript override to ^7.0.5 for remaining 4

Closes #204, #208, #210, #213, #215, #216
@berntpopp berntpopp force-pushed the chore/bulk-dependency-security-updates branch from ec033bf to 8df6050 Compare April 9, 2026 06:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Consolidates multiple Dependabot updates into a single PR to address npm security advisories and refresh CI/Docker dependencies across the app and API components.

Changes:

  • Bump Mailpit dev image tag and R base image version (4.5.2 → 4.5.3).
  • Update GitHub Actions used for CI and Pages deployment (paths-filter/configure-pages/deploy-pages).
  • Update frontend dev dependencies (rollup-plugin-visualizer) and add an npm override to force a patched serialize-javascript.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docker-compose.dev.yml Updates Mailpit image tag for local/dev stack.
app/package.json Updates dev tooling dependency and adds overrides for a security fix.
api/Dockerfile Bumps R base image and updates version references in comments/labels.
.github/workflows/gh-pages.yml Updates Pages-related GitHub Actions versions.
.github/workflows/ci.yml Updates paths-filter action and R setup version in CI jobs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Vite 7.x introduced host security that blocks requests from
unrecognized hosts (connection reset). Add allowedHosts: true
to vite.config.ts for Docker dev server.

Also add Host(`127.0.0.1`) to Traefik router rules in the dev
override so requests from the host machine via 127.0.0.1 are
routed correctly.
Keep renv.lock R version in sync with Dockerfile and CI workflow
after the rocker/r-ver 4.5.2 → 4.5.3 bump.
@berntpopp berntpopp merged commit 85fc3f0 into master Apr 9, 2026
6 checks passed
@berntpopp berntpopp deleted the chore/bulk-dependency-security-updates branch April 9, 2026 07:09
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