Security context

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

usememos/memos
main @ 20c19ef
166
Fixes
50
CVEs
CRITICAL
Peak severity
44.7%
Coverage
Highlights
Auth Bypass: 61 prior fixes. Scrutinize any change in this area.
server/resource.go: most-fixed (13 issues). Treat as high-risk during review.
100 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.

SSRF: Insecure handling of user-provided URLs in external link metadata previewers allows unauthenticated attackers to probe internal networks, bypass private/loopback address blocks, or achieve Server-Side Request Forgery. This risk is tracked under multiple critical CVEs.
Auth Bypass: JWT authentication logic frequently allowed complete authorization bypass due to naive URL path prefix-matching or incorrect route-matching configurations that bypassed authentication on restricted user endpoints.
Stored XSS: Allowing users to upload hazardous vector or HTML content types and serving them without overriding the mime-type header allowed attackers to perform Stored Cross-Site Scripting (XSS) and execute scripts in admin/user sessions.