Skip to content

Maintenance: dependency updates, review and security hardening - #50

Merged
sorenwacker merged 3 commits into
mainfrom
chore/maintenance-2026-11-05
Nov 6, 2026
Merged

sorenwacker merged 3 commits into
mainfrom
chore/maintenance-2026-11-05

Conversation

@sorenwacker

Copy link
Copy Markdown
Owner

Dependency updates, a codebase review (docs/REVIEW.md), and security fixes for opening untrusted documents.

  • Mermaid uses securityLevel: 'strict' (viewer and print).
  • Main window blocks will-navigate and denies window.open.
  • open-external no longer accepts file:; linked local files go through a new open-path handler that refuses executable types.
  • open-file-in-tab only accepts markdown files, so it cannot register arbitrary paths as writable for save-file.
  • Outline built with DOM nodes/textContent instead of innerHTML.
  • Mermaid source is escaped before insertion.
  • Delegated link handler: covers late-inserted anchors, handles #fragment, %-encoding and mailto:.
  • closeConfirmed resets when a window is created, so a reopened window prompts about unsaved edits again.
  • Lockfile keeps the https URL for markdown-editor (npm update had rewritten it to ssh).

Testing: lint and the non-Electron specs pass. The Electron e2e suite could not run on the dev machine (Chromium SUID sandbox blocked); please check CI.

🤖 Generated with Claude Code

@sorenwacker
sorenwacker merged commit 5c0907b into main Nov 6, 2026
4 checks passed
@sorenwacker
sorenwacker deleted the chore/maintenance-2026-11-05 branch November 6, 2026 13:30
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