Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

laurent22/joplin
dev @ 821ebbb
105
Fixes
26
CVEs
CRITICAL
Peak severity
41.2%
Coverage
Highlights
Auth Bypass: 22 prior fixes. Scrutinize any change in this area.
packages/renderer/htmlUtils.ts: most-fixed (16 issues). Treat as high-risk during review.
56 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Cross-Site Scripting (XSS): HTML parsing and note rendering pipelines frequently fail to properly sanitize elements (such as iframe, embed, link, area, map, and nested tag structures), allowing attackers to bypass sanitization filters, trigger script execution, and potentially leverage Electron features to execute arbitrary commands.
Path Traversal: The OneNote import pipeline and file conversion utilities fail to properly canonicalize and validate nested folder/notebook titles and attachments, allowing path traversal on Windows platforms and potential arbitrary file writes.
Auth Bypass: Logic errors in share associations, deletion hooks, and subfolder moving allow removed users or unshared subfolders to retain active database permissions and continue accessing shared notes.