Skip to content

fix(deps): resolve dependabot security advisories - #5

Merged
jcam2803 merged 1 commit into
developfrom
claude/dependabot-security-updates-l9u9p9
Nov 18, 2026
Merged

jcam2803 merged 1 commit into
developfrom
claude/dependabot-security-updates-l9u9p9

Conversation

@jcam2803

@jcam2803 jcam2803 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Description

Resolves the open dependency security advisories. pnpm audit goes from 357 advisories (11 critical, 145 high, 176 moderate, 25 low) to 4 high, none of which have an upstream fix yet.

Direct dependency bumps

Package From To
axios 1.15.0 1.21.1
next / @next/eslint-plugin-next / eslint-config-next 16.2.6 16.4.6
nodemailer 8.0.5 10.6.0 (major)
sharp ^0.34.5 ^0.35.5
undici ^8.1.0 ^8.12.4
zod 4.3.6 4.6.7
express 5.2.1 5.3.0
express-rate-limit 8.3.2 8.7.4
js-yaml ^4.1.1 ^4.3.2
nanoid ^5.1.7 ^5.1.16
ip-address ^10.2.0 ^10.7.6
ua-parser-js ^2.0.9 ^2.0.10
postcss ^8.5.9 ^8.5.33
baseline-browser-mapping ^2.10.18 ^2.11.38
node-gyp 12.2.0 12.4.0
commitizen 4.3.1 4.3.2

Transitive packages

  • Vulnerable transitive packages that had a patched release inside their parent's range were refreshed in pnpm-lock.yaml only (handlebars, brace-expansion, fast-uri, undici 6, svgo, multer, systeminformation, mailparser, and others).
  • pnpm.overrides were added only where a parent pins a vulnerable range: glob, minimatch, nodemailer (email-templates wants ^7), postcss-selector-parser, qs, tar, uuid.
  • sqlite3>node-gyp now points at the direct node-gyp dependency instead of the 8.4.1 pin, which removes the old tar@6 / make-fetch-happen / @tootallnate/once chain.

Source changes

  • server/lib/email/index.ts: nodemailer 10 ships its own type definitions, which no longer match the @types/nodemailer declarations that @types/email-templates uses. The transport is cast at that boundary; no runtime change. The direct @types/nodemailer devDependency is removed.
  • server/lib/imageproxy.ts: axios header values are now typed more broadly, so content-type and cache-control are coerced to strings before use.

Not fixed (no patched release exists)

Things worth a reviewer's eye

  • nodemailer 8 to 10 crosses two majors. Relevant behaviour changes: Node 20+ required, error code NoAuth renamed to ENOAUTH (not referenced in this codebase), and remote attachment fetches now validate TLS certificates by default (SMTP TLS handling via allowSelfSigned is unchanged).
  • A real SMTP send was not tested, only template rendering through nodemailer's JSON transport.
  • Cypress end-to-end tests were not run locally (the CI Cypress run on this PR passed).
  • The Docker image build was not run locally.

How Has This Been Tested?

Node 22.23.5, pnpm 10.24.0, Linux x64:

  • pnpm audit: 4 remaining (listed above)
  • pnpm typecheck: pass
  • pnpm lint: 0 errors (20 existing warnings)
  • pnpm test: 260 / 260 pass
  • pnpm build: pass
  • Started the built server against an empty config directory: /api/v1/status responds, /setup returns HTTP 200
  • Rendered the test-email template through email-templates with nodemailer 10.6.0
  • sharp 0.35.5 image encode
  • Forced a from-source sqlite3 build with node-gyp 12.4.0 and ran a query against it

Screenshots / Logs (if applicable)

Checklist:

  • I have read and followed the contribution guidelines.
  • Disclosed any use of AI (see our policy)
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • Successful build pnpm build
  • Translation keys pnpm i18n:extract
  • Database migration (if required)

🤖 Generated with Claude Code

https://claude.ai/code/session_01RnghqAkpHr5qF3HeAS1oti

Bump vulnerable direct dependencies (axios, next, nodemailer, sharp,
undici, zod, express, express-rate-limit, js-yaml, nanoid, ip-address,
ua-parser-js, postcss, node-gyp, commitizen) and refresh vulnerable
transitive packages in the lockfile. Add pnpm overrides where a parent
package pins a vulnerable range (glob, minimatch, nodemailer,
postcss-selector-parser, qs, tar, uuid) and point sqlite3's node-gyp
peer at the direct node-gyp dependency instead of the 8.4.1 pin.

Adjust the email transport typing for nodemailer 10's bundled types and
coerce axios response headers to strings in the image proxy.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RnghqAkpHr5qF3HeAS1oti
@jcam2803
jcam2803 marked this pull request as ready for review November 18, 2026 10:08
@jcam2803
jcam2803 merged commit cca96ca into develop Nov 18, 2026
6 of 7 checks passed
jcam2803 pushed a commit that referenced this pull request Nov 18, 2026
develop gained the Dependabot security update (#5),
which overlaps with the upstream sync on this branch.

Conflict resolution:
- package.json: keep the newer security versions from develop (axios,
  express-rate-limit, ip-address, undici, next eslint plugin,
  baseline-browser-mapping) on top of upstream's layout. Keep upstream's
  sqlite3 v6 and drop the sqlite3>node-gyp override that only applied to
  sqlite3 v5. humanize-duration stays removed, as upstream removed it.
- server/lib/email/index.ts, server/lib/imageproxy.ts: both sides made
  the same fix; keep upstream's wording to stay aligned with upstream.
- pnpm-lock.yaml: regenerated from the resolved package.json.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RnghqD5NZ2nMdRsSsDsvUp
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