Skip to content

Update dependencies to clear known vulnerabilities - #44

Merged
sorenwacker merged 7 commits into
mainfrom
chore/dependency-updates
Nov 4, 2026
Merged

sorenwacker merged 7 commits into
mainfrom
chore/dependency-updates

Conversation

@sorenwacker

Copy link
Copy Markdown
Owner

Brings npm audit from 19 vulnerabilities (1 critical, 15 high, 3 moderate) to zero.

  • mermaid 11.12 to 11.17.2: prototype pollution in architecture diagrams, DoS in xychart and radar diagrams. This one ships to users.
  • DOMPurify to 3.4.15, also shipped.
  • tar (critical, via build tooling) and other transitive packages, through npm audit fix.
  • pdfjs-dist 5 to 6 (test-only, reads exported PDFs back).
  • Electron 39 to 44, the only fix for the extract-zip symlink advisory.

Electron 44 changed when a window is handed to Playwright: the fixture attached before the app had navigated to renderer.html, so 57 tests failed with a destroyed execution context. The fixture now waits for the page itself.

Three dependency gates were added, each proven to fail on the problem it catches:

  • The lockfile must hold no git+ssh URLs. npm install rewrites the shared editor dependency to ssh, which CI runners cannot fetch; this has broken installs twice.
  • Every dependency range must be bounded below its next major.
  • Every package the app loads from node_modules at runtime must be declared as a dependency.

Test plan

  • npm test: 113 passed on Electron 44, plus 3 new dependency tests
  • npm run lint clean
  • npm audit: 0 vulnerabilities
  • Packaged the app and launched it with a document

🤖 Generated with Claude Code

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.

1 participant