Skip to content

chore(deps): update vulnerable dependencies; pnpm audit clean (#313) - #314

Merged
benders merged 2 commits into
mainfrom
feature/313-update-vulnerable-deps
Nov 13, 2026
Merged

benders merged 2 commits into
mainfrom
feature/313-update-vulnerable-deps

Conversation

@benders

@benders benders commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Closes #313. SECURITY.md H4.

pnpm audit: 138 advisories (79 in prod deps) → 0, prod and dev.

Changes

  • pnpm up -r for everything in range: fastify 5.12.8, undici 7.30.2, fast-uri 3.1.9, sharp 0.35.5, fast-xml-parser 5.12, newrelic 14.12 (@grpc/grpc-js), react-router-dom 7.18.5, vite 8.3.8, and the rest of the lockfile.
  • Majors: @fastify/static 9 → 10, vitest 3 → 4.
  • Dropped node-upnp (dev dep, unmaintained): its got / ip / fast-xml-parser 3 deps carry advisories and ip has no patched release. hub/test/dlna-http.integration.test.ts now uses a small in-file ControlPoint (fetch + fast-xml-parser) that still discovers control URLs from device.xml.
  • pnpm.overrides: @typescript-eslint/typescript-estree>minimatch → ^11.0.1 (parent still pins ^10).
  • Fallout from the bumps:
    • frontend/tsconfig.app.json lists node types — vitest 4 no longer pulls them in transitively.
    • Three new eslint-plugin-react-hooks 7.1 errors fixed in code: InvitePage (token read in a useState initializer instead of set in an effect), useDocumentTitle (helper declared before the effects), PlayerBar (memo on a hoisted local).
    • import.meta.dirname in the vite/vitest configs (vite 8.3 warning).
  • Docs: SECURITY.md H4 status, docs/dlna.md / docs/sonos.md, three docs/pitfalls.md rows.

Not upgraded (no advisory, larger majors): undici 8, fast-uri 4, pino 10, eslint 10, TypeScript 7, vitest 5.

Testing

  • pnpm audit / pnpm audit --prod: no known vulnerabilities.
  • pnpm verify locally: typecheck, lint (zero output), hub unit 1033/1033, frontend 193/193, integration 19 passed.
  • 3 local failures, environmental: dlna-ssdp.integration.test.ts — the dev Mac cannot send UDP multicast at all (bare dgram.send to 239.255.255.250 → EHOSTUNREACH, the known reboot-to-fix condition). CI runs them on Linux.
  • pnpm --filter frontend build green.
  • Smoke: compiled hub + built SPA on a scratch DB — SPA index, deep-route fallback, hashed asset, encoded ..%2f traversal (falls back to index, no file leak), API 404, /admin/login cookies, owner-gated route 200 with cookie / 401 without, Subsonic ping.
  • pnpm test:federation not run locally: the host runs two live hubs on a 2 GB Docker VM (the OOM pitfall from Restrict /proxy/* to signed peers and a read-only endpoint allowlist #308). Relying on the CI federation job.

🤖 Generated with Claude Code

https://claude.ai/code/session_01M98ML9i5X7crjKVomscTNt

benders and others added 2 commits November 12, 2026 17:44
pnpm audit: 138 advisories (79 prod) -> 0.

- pnpm up -r for everything in range (fastify 5.12.8, undici 7.30.2,
  fast-uri 3.1.9, sharp 0.35.5, fast-xml-parser 5.12, newrelic 14.12,
  react-router-dom 7.18.5, vite 8.3.8, ...)
- @fastify/static 9 -> 10, vitest 3 -> 4
- drop node-upnp (unmaintained; got / ip / fast-xml-parser 3 advisories,
  ip has no patched release): the DLNA HTTP integration test now uses an
  in-file control point on fetch + fast-xml-parser
- pnpm override: typescript-estree > minimatch ^11.0.1
- frontend: add node types (vitest 4 no longer pulls them in), fix three
  new eslint-plugin-react-hooks 7.1 errors, import.meta.dirname in vite
  configs

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M98ML9i5X7crjKVomscTNt
@benders
benders marked this pull request as ready for review November 13, 2026 01:47
@benders
benders merged commit c407c6f into main Nov 13, 2026
2 checks passed
@benders
benders deleted the feature/313-update-vulnerable-deps branch November 13, 2026 01:56
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.

chore(deps): update vulnerable npm dependencies (pnpm audit)

1 participant